Search Unity

UI disappearing when loading scene

Discussion in 'UGUI & TextMesh Pro' started by moscovicinadav, Nov 30, 2021.

  1. moscovicinadav

    moscovicinadav

    Joined:
    Nov 21, 2021
    Posts:
    5
    My main menu UI disappears when loaded from another scene. Weird thing is that if I complete the level and I return to the menu everything works just fine, but if I return to it from the pause menu or the death screen the UI disappears and if I click where the buttons should be the game starts but it's frozen. Can somebody help?

    Thanks in advance!
     
    Last edited: Dec 1, 2021
  2. moscovicinadav

    moscovicinadav

    Joined:
    Nov 21, 2021
    Posts:
    5
    Ok I've solved my issue all I had to do is create a Main Menu manager which allowed managed only the return to menu button, in this Script I've set the TimeScale to 1 before loading my Main Menu Scene and everything worked smoothly.
    Here's the Menu Button script:
     

    Attached Files: