- Home /
Sub-menu help
We are working on a project and creating a main menu for the game. The main menu will have several items on it, 3 of which will go to a sub menu. For example, We have the following menu setup for the main menu:
single player
arcade mode
practice mode
combo master
check for updates
options
then there are 2 sub-menus.
for single player:
start new game
Load Game
Back
for options:
general settings
sound settings
video settings
back
I was thinking that I would have to create a seperate scene for each sub-menu. then write a script that when clicked would load that scene.
I'm not certain if this is the best way to do it, I know if there was a script it would be something like Application("loadScene")
but again, not completely certain..
Any help out there for this?
Thanks in advance
Answer by hijinxbassist · Jun 03, 2012 at 06:14 AM
http://answers.unity3d.com/questions/255785/efficient-loading-of-a-new-sub-menu.html>Here's a link to a previous question i answered. You will use a switch case to switch between the different menus/subgroups
so was I right in making the new scene for the sub menu, then following your code sample just name that new scene??
@fingaz1 I wouldnt suggest making new scenes. Just use the switch case for each separate menu. If you have a bunch of 3d models specific to that menu, consider fading in/out a screen cover(whiting out the screen) and just change the cameras position in the one scene itself to a different location. Then you only need one scene for menus. I hope that answers your question
Answer by RhoneRanger · May 14, 2013 at 06:30 AM
Do you have to use a switch statement to show submenus? Cant you just loop through them?
Your answer
![](https://koobas.hobune.stream/wayback/20220613072300im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How to find a prefab in another scene? 1 Answer
Playing animation when picking up an object. 2 Answers
How do I get to display Timetaken to finish the the game scene on the final scene? 1 Answer
How to load a scene on collision 2 Answers