Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Reload scene

Discussion in 'Editor & General Support' started by pablogoulart02, Jul 16, 2020.

  1. pablogoulart02


    Mar 8, 2020
    I reload the scene when the player dies, but when that happens, the message appears: "Levelx (Is Loading)" and after that, I can't load the next level anymore.

    Code for reload scene.
    Code (CSharp):
    1. void OnBecameInvisible() {
    3. SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    5. }
    I try to save the project when the message "Level X (is loading)" appears and this message box appears to me. Ignore, do not change anything and reload the scene back to before the modification. However, I can change everything as long as I don't have that message.