Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


monobehaviour

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
monobehaviour [2021/12/24 22:38]
archo OnDisable/OnDestroy order etc.
monobehaviour [2022/01/28 17:25]
73.217.35.3
Line 15: Line 15:
   * If no FixedUpdate() or Update() events are defined, Start will be run at the end of the frame the object awoke on.    * If no FixedUpdate() or Update() events are defined, Start will be run at the end of the frame the object awoke on. 
  
-==== OnDisable/OnDestroy() ==== +==== OnDisable/OnDestroy()((Tested with 2017.4 and an opened Scene running in play mode in editor by stopping the play mode, may differ for other versions/situations)) ==== 
-(Tested with 2017.4 and an opened Scene running in play mode in editor by stopping the play mode, may differ for other versions/situations)+
   * Both events are not affected by script execution order.   * Both events are not affected by script execution order.
   * Scene is traversed from each root separately in unspecified (non-hierarchy) order, e.g. [root 1 and all its children], [root 2 and all its children]. "root" being a top-level GameObject in scene.   * Scene is traversed from each root separately in unspecified (non-hierarchy) order, e.g. [root 1 and all its children], [root 2 and all its children]. "root" being a top-level GameObject in scene.
monobehaviour.txt · Last modified: 2022/01/28 17:26 by 73.217.35.3