Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
runtimeinitializeonload [2021/08/30 06:08] 72.28.7.108 |
runtimeinitializeonload [2021/08/30 06:16] andrew900460 Added nuanced info section after discovering interesting behaviour |
| |
Methods with RuntimeInitializeLoadType.AfterSceneLoad, or RuntimeInitializeLoadType.BeforeSceneLoad will only be called for the **first** scene in a run of the application, not every scene. ((Tested in Unity 2019.4.19f1, in editor and in Android build)) | Methods with RuntimeInitializeLoadType.AfterSceneLoad, or RuntimeInitializeLoadType.BeforeSceneLoad will only be called for the **first** scene in a run of the application, not every scene. ((Tested in Unity 2019.4.19f1, in editor and in Android build)) |
| |
---- | ---- |
| |
} | } |
</code> | </code> |
| |
---- | ---- |
| |
* [[https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneLoaded.html|'SceneManager.sceneLoaded']] event subscribers will also be called BEFORE "AfterSceneLoad". By the name of the event, you may assume that the event is called AFTER the scene was loaded, but it appears to be called just before. //(discovered in 2021.1.15f1)// | * [[https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneLoaded.html|'SceneManager.sceneLoaded']] event subscribers will also be called BEFORE "AfterSceneLoad". By the name of the event, you may assume that the event is called AFTER the scene was loaded, but it appears to be called just before. //(discovered in 2021.1.15f1)// |