Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

5.3 OnLevelWasLoaded(int) behavior different in editor then build

Discussion in 'Editor & General Support' started by snacktime, Dec 14, 2015.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    In 5.2 and earlier level 0 would not call OnLevelWasLoaded(int) at all. In 5.3 it gets called in builds but not in the editor.
     
  2. SteenLund

    SteenLund

    Unity Technologies

    Joined:
    Jan 20, 2011
    Posts:
    639
    Hi,

    Thanks, if possible could you please file a bug.

    I don't see it as a bad thing that OnLevelWasLoaded is now called for the first scene, but the inconsistency is annoying.
     
  3. tarod-net

    tarod-net

    Joined:
    May 29, 2015
    Posts:
    8
    I saw the difference when I upgraded Unity 5.1 to 5.3.

    And I realized about this behavior when I launched the game in Android, not in editor.

    Edit: I'm reading about this issue and some solutions here.
     
    Last edited: Jan 27, 2016
  4. silentneedle

    silentneedle

    Joined:
    Mar 14, 2013
    Posts:
    280
    Any chance this inconsistency will get fixed soon? It's really annoying.