CoherenceNode
Component to synchronize hierarchy changes between two entities on the same hierarchy.
Remarks
Instantiation of networked entities happens on the root of the scene by default (using DefaultInstantiator, which instantiates through Instantiate). This might create scenarios where an entity exists within a hierarchy on the client that created it, but when replicated on other clients, it is placed outside of that hierarchy.
This component allows to parent the entity accordingly, based on the sibling indexes (see GetSiblingIndex) of the entity and its parents. There is no resolution based on name. If hierarchies differ between clients, hierarchy changes might not be applied correctly.
The client needs to have authority over the children to be able to set its parent. Both objects involved (parent and child) need to be different network entities i.e., use CoherenceSync.
Fields
path | A comma-separated string of Transform sibling indexes. |
pathDirtyCounter | Used to keep track of whether |