Network Prefabs like any game object may have scripts and components to control their behavior.


ObjectNet automatically disables all scripts when the game object is in passive mode since this object will be controlled remotely by the server, nonetheless, in certain circumstances some scripts shall be activated.


Scripts can be enabled/disabled by clicking on the script's icon.


       


A list of all scripts on each game object (including children) will appear, and you can enable/disable any script.



By flagging the check box you can enable the script to run on passive instances.


In case any script needs to be executed before being disabled ( if some data was collected in OnAwake on OnStart methods ) you shall keep the checkbox unchecked and use the slider to tell to ObjectNet to disable this script only after a certain amount of time.