Parenting network entities
How to parent CoherenceSync objects to each other
Last updated
Was this helpful?
How to parent CoherenceSync objects to each other
Last updated
Was this helpful?
Out of the box, coherence offers several options to handle parenting of networked entities. While some workflows are automatic, others require a specific component to be added.
Generally there is a distinction if the parenting happens at runtime vs. edit time, and whether the two entities are direct parent-child, or have a complex hierarchy. See below for each case.
At runtime:
: when you create a parent-child relationship of CoherenceSync
objects at runtime.
: when you create a complex parent-child relationship of CoherenceSync
objects at runtime.
At edit time:
: the developer prepares several connected Prefabs and nests them one to another before entering Play Mode. This covers both Prefabs in the scene and in the assets.