monobehaviour
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
monobehaviour [2021/12/24 22:38] – OnDisable/OnDestroy order etc. archo | monobehaviour [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/ | + | ==== OnDisable/ |
- | (Tested with 2017.4 and an opened Scene running in play mode in editor by stopping the play mode, may differ for other versions/ | + | |
* 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]. " | * 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]. " | ||
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/ | ||
==== OnBecameVisible() ==== | ==== OnBecameVisible() ==== |
monobehaviour.1640385516.txt.gz · Last modified: 2025/01/15 04:35 (external edit)