So, I’ve started using unity 2 days ago and have created a functioning start menu. The problem is that both the menu and level show up in the scene box together, as in you can see the menu Buttons and Sprite I used as the background and also the terrain of my first level. How do I fix this?
Can you please show the screenshot?
Welcome!
There are a couple ways I can think of for how you could handle this. In increasing order of complexity:
- Have your menu be in its own scene. Loading the game will change scenes and get rid of the menu.
- Add a background image in your UI that has full opacity, so you can’t see anything behind the menu. When you want to start the game, disable the entire canvas or all of its contents.
- Have your menu as one prefab and your level as another. A manager of some sort (or two separate managers) would keep track of the current state of your menu and levels and display the correct one as appropriate.
1 Like