This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
runtimeinitializeonload [2021/05/07 19:26] bhanson Add when Start() runs |
runtimeinitializeonload [2021/06/18 00:09] andrew900460 |
||
---|---|---|---|
Line 3: | Line 3: | ||
The documentation is not correct about this function running after awake. It does by default, but not if you specify a load type: | The documentation is not correct about this function running after awake. It does by default, but not if you specify a load type: | ||
- | The order of callbacks is: ((tested in the editor, 2020.2.1f1. Also tested in editor and in build in 2019.4.12f1)) | + | The order of callbacks is: ((tested in the editor, 2020.2.1f1 |
* SubsystemRegistration | * SubsystemRegistration | ||
* AfterAssembliesLoad | * AfterAssembliesLoad | ||
Line 10: | Line 10: | ||
* __//Unity MonoBehaviour.Awake() runs here//__ | * __//Unity MonoBehaviour.Awake() runs here//__ | ||
* AfterSceneLoad, | * AfterSceneLoad, | ||
- | * __//Unity MonoBehaviour.Start() runs here//__ | ||
Providing no load type defaults to RuntimeInitializeLoadType.AfterSceneLoad, | Providing no load type defaults to RuntimeInitializeLoadType.AfterSceneLoad, | ||
+ | |||
+ | ==== Other versions that have been verified to also use this exact order: ==== | ||
+ | * 2021.1.12f1 (editor only) |