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
1
Question by benjaben · Jan 23, 2012 at 11:53 PM · guimenu

How to make a File, Edit, Preference Menu?

I'm trying to make a toolbar menu and I was looking at the scripting reference for toolbar, but I'm unsure how to use it exactly. I want to make just a standard File -> Save/Exit, Edit -> Undo/Redo, Preferences -> Options kind of toolbar. Can anyone point me to the right direction?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by IgnoranceIsBliss · Jan 24, 2012 at 12:11 AM

It's not something Unity was specifically designed to do, but you can do it using the GUI controls.

GUI.Label draws text, GUI.Box creates boxes (which can then be filled with text and buttons if you like) and GUI.Button makes buttons. A box of buttons would create a menu - so you can combine these primitive parts to create a basic menu system.

Check out the GUI reference - it's not going to be very easy or straight-forward though, you'll have to build everything yourself. There's no standard Unity framework for drop-down menus - but you could check the Asset Store in case someone else has done it.

Comment
Add comment · Show 3 · 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
avatar image IgnoranceIsBliss · Jan 24, 2012 at 12:12 AM 0
Share

Fundamentally Unity is a game engine, and very few games have file menus - which is why it's not included as a standard feature.

avatar image benjaben · Jan 24, 2012 at 12:20 AM 1
Share

I get what you are saying. I think I can figure it out using boxes, text and buttons and some textures. Yeah I'm trying to make a map editor within a game engine so I definitely have had to think outside the box a few times. Thank you for your input :D

avatar image IgnoranceIsBliss · Jan 24, 2012 at 12:38 AM 0
Share

You'll probably want to use a GUI Skin on your menu - that way you can make all of your buttons come out looking like menu items and at the same time don't need to hard-code your appearance data.

$$anonymous$$ake a new skin specifically for your menus and it will make your code clean and make it $$anonymous$$UCH easier to make changes in the future!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Game Menus WIth Keyboard Input Control 1 Answer

How to make a simple menu button with C Sharp 1 Answer

How to make a scrollable menu like angry bird? 1 Answer

Creating a Main Menu: 3 Answers

Accessing the Asset's setting from code using Wizards/Editor classes? 0 Answers


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