Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Absence of OnLevelWasLoaded in Execution Order docs

Discussion in 'Documentation' started by CanisLupus, Jul 4, 2014.

  1. CanisLupus

    CanisLupus

    Joined:
    Jul 29, 2013
    Posts:
    427
    Currently, Unity's execution order documentation page is missing any kind of reference to OnLevelWasLoaded, and the documentation for the function itself (here) also doesn't address at what exact time it occurs, nor that playing a scene from the Editor doesn't seem to trigger the function.

    From a very brief test of mine, OnLevelWasLoaded appears to run between Awake/OnEnable and Start, but I've found many posts mentioning some unreliability (at least in old Unity versions) and would love it if both documentation pages were updated.
     
    Last edited: Jul 4, 2014
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,649
    Ah, I see there's now an official diagram that obsoletes the one I made a while ago :)

    There's also nothing on that page about when Invoke()-scheduled calls will be made.