Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by CubePhysics · Nov 25, 2012 at 09:58 PM · guibuttonsaveloadmenu

Load, Save and Options Gui Help

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 ![alt text][1]

untitled.png (310.3 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CubePhysics · Nov 26, 2012 at 06:10 PM 0
Share

BU$$anonymous$$P BU$$anonymous$$P BU$$anonymous$$P

avatar image thaiscorpion · Nov 26, 2012 at 06:43 PM 1
Share

CubePhysics I doubt your going to get an answer since you haven't asked a question. If you don't know how to do the whole menu don't just ask for the whole menu to be done divide it into smaller blocks and if you dont know how to do that block then ask that question. Good luck.

avatar image CubePhysics · Nov 26, 2012 at 07:21 PM 0
Share

I did ask my question read it again. I wanted to know how you create a new game and load game menu like in castle story

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by dsutherland · Nov 26, 2012 at 10:45 PM

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. http://www.youtube.com/watch?v=8Q5y7pHWdlo

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

in game menu for load, save, quit to main menu scene and volume. also a question on opening scenes 1 Answer

Missing 'Options' in my GUI Menu? 2 Answers

How do I destroy a GUI button when I click on it 1 Answer

Another GUI question. enable and disable 1 Answer

On button hover, Gui Box shows, on box hover, Gui Box shows 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges