Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save hybridherbst/36ae70b6520981c8edc7b478423fae5e to your computer and use it in GitHub Desktop.

Select an option

Save hybridherbst/36ae70b6520981c8edc7b478423fae5e to your computer and use it in GitHub Desktop.

Revisions

  1. hybridherbst renamed this gist Mar 8, 2021. 1 changed file with 0 additions and 0 deletions.
  2. hybridherbst renamed this gist Mar 8, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. hybridherbst created this gist Mar 8, 2021.
    10 changes: 10 additions & 0 deletions EventOrder.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    static Lifecycle() => Debug.Log(Prefix + "Static Constructor");
    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] static void Subs() => Debug.Log(Prefix + "Subsystem Registration");
    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] static void AfterAsm() => Debug.Log(Prefix + "AfterAssembliesLoaded");
    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)] static void BeforeSlash() => Debug.Log(Prefix + "Before Splash");
    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] static void BeforeScene() => Debug.Log(Prefix + "BeforeScene");
    private void Awake() => Debug.Log(Prefix + "Awake");
    private void OnEnable() => Debug.Log(Prefix + "OnEnable");
    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)] static void AfterScene() => Debug.Log(Prefix + "AfterSceneLoad");
    [RuntimeInitializeOnLoadMethod] static void DefaultLog() => Debug.Log(Prefix + "RuntimeInit Default");
    void Start() => Debug.Log("Start");