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 revisionPrevious revision
Next revision
Previous revision
monobehaviour [2022/01/28 17:25] 73.217.35.3monobehaviour [2025/01/15 04:35] (current) – external edit 127.0.0.1
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()((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)) ====+==== OnDisable/OnDestroy() ====  
  
   * Both events are not affected by script execution order.   * Both events are not affected by script execution order.
Line 27: Line 28:
   * **OnDestroy**:   * **OnDestroy**:
     * Call order: same as hierarchy, parent before child. :!:     * Call order: same as hierarchy, parent before child. :!:
 +
 +(Above 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)
  
 ==== OnBecameVisible() ==== ==== OnBecameVisible() ====
monobehaviour.1643390743.txt.gz · Last modified: 2025/01/15 04:35 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki