Unity Multiplayer: Server Authenticated Interactables

Опубликовано: 14 Апрель 2026
на канале: Alex
48
1

Not really much to show here visually. Just setting up interactables. Interactables check whether or not the player is in the interactables target area (sphere collider in this demo), which in theory will make sure players can only open a chest from the front. The interactable itself must also be hit by a raycast shot out from the middle of the screen, to make sure the character is "looking" at the object. Seems a lot more reliable than my old method of shooting a raycast from the character. Also one more check to make sure the player is truly facing the object, only neccesary because I have a few orbiting camera modes.

Also put a little more work into general network stuff, made an addressable spawner, and streamlined how new characters are made.