This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
monobehaviour [2022/01/28 17:25] 73.217.35.3 |
monobehaviour [2022/01/28 17:26] (current) 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/ | + | ==== OnDisable/ |
* 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/ | ||
==== OnBecameVisible() ==== | ==== OnBecameVisible() ==== |