Replication Client Unity
Uses the Replication Client Dotnet and adds the Unity3d-specific features needed.
Usage
Add the Worker
behaviour to a gameobject in the scene. Enter the name of your protocol and if this is considered a trusted worker or not.
Place prefabs with names that matches the entity type names in your custom protocol:
Features
-
Spawns a unity prefab from
Resources/
directory with the corresponding name. -
Injects the protocol-specific entity writers and readers to the components in the spawned prefab.
-
Enables and disables components depending on whether the worker is authoritative over that component / game object or not.