Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    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.