I have created a main menu. So far I have made a C# script that peforms the following: Roll mouse over any button it will highlight grey. When you click “EXIT” it will close the App/Game.
But I DESPERATELY need help with the “New Game”,“Load Game” and “Options” button. I want it like the game Castle Story. so when you click New Game a GUI comes up beside it with 4 spaces where you can save your game. When you click Load Game it comes up with the GUI but to load a game. And Lastly the options button should have a GUI coming up to adjust the graphics and noise.
Here is a picture to help you
Well I don’t know about castle story but you could make it Load a scene where you can select save data. All you have to do for that is something similar to this:
if (GUI.Button(new Rect((Screen.width - buttonWidth - horizontalSpacing) / 2, (Screen.height - menuHeight - verticalSpacing) / 2 + 30, buttonWidth, buttonHeight), "Yes"))
{
Application.LoadLevel("MainMenu");
}
else if (GUI.Button(new Rect((Screen.width - buttonWidth + horizontalSpacing) / 2, (Screen.height - menuHeight + verticalSpacing) / 2 + 30, buttonWidth, buttonHeight), "No"))
{
menuActive = false;
}
These buttons can be in behind your graphics, you just have to figure out positioning.
Application.LoadLevel(“MainMenu”); → this Loads a Scene in your project with the same name. Make sure the scene is included in the build of your project. There is also a Youtube video for 3D menus. #27 - How to create a Main Menu in Unity3D - YouTube