Coherence.ReplicationClient.Unity

Replication Client for Unity


Keywords
client, replication
License
MIT
Install
Install-Package Coherence.ReplicationClient.Unity -Version 0.0.5-a03

Documentation

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.

worker_component

Place prefabs with names that matches the entity type names in your custom protocol:

resources_example

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.