Search Unity

OnCreateManager gets called before RuntimeInitializeOnLoadMethodAttribute[BeforeLoad]

Discussion in 'Entity Component System' started by labandunga, Jan 1, 2019.

  1. labandunga

    labandunga

    Joined:
    Aug 1, 2012
    Posts:
    29
    Like the title says, the ordering should be reversed I think. If not, we need a new attribute that's more in line with [OnApplicationStart]
     
  2. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    OnCreateManager of the default world's systems is actually a result of [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]. The bootstrap code uses that.