Child Objects
Network Prefabs can often include multiple nested objects under a root GameObject.
When a prefab is running in Passive mode, ObjectNet allows you to disable specific child objects. This is useful when certain parts of the object are only relevant to the owning client.
To configure this, click the script icon as shown bellow to display a list of all child objects. You can then toggle which ones should be active or inactive when the prefab is passive.

By flagging the check box you can enable objects on passive instances.
In case any child needs to be executed before being disabled ( if some data was collected in OnAwake on OnStart methods attached to this object ) you shall keep the checkbox unchecked and use the slider to tell to ObjectNet to disable only after a certain amount of time.
Click the icon on the left to expand and view all child objects. You can also use the Smart Filter search bar to quickly locate specific objects within the hierarchy.

Last updated