When networked entities are added by loading a scene additively, mind that the CoherenceMonoBridge
must be set to a singleton mode. In case of a non-singleton monobridge the Entity will search for a monobridge instance within its scene, and if none is found it will be created in that scene. This applies to both CoherenceSync
and LiveQuery
objects.
For a complete control over CoherenceMonoBridge
resolving you can use either CoherenceSync.MonoBridgeResolve
instance event or MonoBridgeStore.MonoBridgeResolve
global event. A CoherenceMonoBridge
instance provided by the MonoBridgeResolve
event takes precedence over the scene and singleton ones.
Sometimes packages cache gets staled and after updating coherence package you might face Unity still uses the old package version. Try to Reimport all
or closing the project, deleting Library
folder, and reopening the project again. It will clean and update packages cache, and use the version of coherence stated in manifest.json
.