Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


runtimeinitializeonload

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
runtimeinitializeonload [2021/06/18 00:25]
andrew900460 verified the execution order in new unity version
runtimeinitializeonload [2021/06/22 17:56]
gwenpri.me added note about SceneLoad is actually only the first scene which is unmentioned in the unity docs.
Line 15: Line 15:
 Other versions that have been verified to also use this exact order: Other versions that have been verified to also use this exact order:
   * 2021.1.12f1 (editor only)   * 2021.1.12f1 (editor only)
 +
 +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 on Unity 2019.4.19f1, Other LoadTypes are untested but would be presumed to be the same.
runtimeinitializeonload.txt ยท Last modified: 2022/01/26 04:23 by 187.190.156.255