Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
2
Question by glovegrove · Feb 19, 2014 at 02:31 PM · menuuser interfaceinterfacebest practice

What are the best practices in Unity to make a 2D menu interface?

I'm making an Android mobile application and cannot find the best practices as to how to lay out the user interface.

The aim is to have an efficient interface and also an easy to maintain unity project. Currently the approach is to use a game object to create the background and then have a game object used as a user interface folder with game objects representing the buttons inside using the OnGUI buttons.

Are there any example projects people would recommend?

Comment
Add comment · Show 2
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 Linus · Feb 19, 2014 at 03:10 PM 0
Share

I would recommend using NGUI or a similar product. I have only used NGUI. Especially on mobile, as it allows you to keep draw calls to a $$anonymous$$imum. other than than that. Having a $$anonymous$$enu Interface is best practice, then you can optimize that if need be.

avatar image Owen-Reynolds · Feb 19, 2014 at 03:35 PM 1
Share

"efficient interface and [...] easy to maintain" Traditionally these conflict. Then, easy to maintain depends on who's dong it (an intern who hand-aligns things in game view? Or a working BORDER_THIC$$anonymous$$_PX variable?)

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by MakeCodeNow · Feb 19, 2014 at 03:57 PM

Using the native Unity GUI works well for very simple interfaces, but will become very CPU heavy and hard to work with as your GUI gets more complex. I would avoid it unless you are creating Editor extensions.

Most game devs wind up just using regular GameObjects, and the new 2D Toolkit makes that even easier.

If you don't want to do all that yourself, there are also good options on the asset store. As others have said, NGUI is far and away the most popular and mature.

Comment
Add comment · Show 1 · 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 glovegrove · Feb 23, 2014 at 12:21 AM 0
Share

I'm currently using the Unity GUI features. I only have around 5-6 menu screens so think this should suffice? NGUI I considered however i'm looking for a free option as this is only for a project.

avatar image
1

Answer by Dblfstr · Feb 19, 2014 at 04:47 PM

Depending on where the UI is located (In Game like health bar etc, or just a menu) There are different approaches.

For my menus, I created a menu scene. So I was able to use the default GUI and OnGUI(). Draw calls dint really matter there. And the UI will always scale to my screen size.

For In game stuff, I would either use gameobjects or sprites (ideally from a texture atlas)or buy a plugin like NGUI.

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
avatar image
1

Answer by ReContraChanfle · Feb 23, 2014 at 12:36 AM

i am in the same problem, you have two options, use Gameobjects or GUI, i have tried with the 2, in my opinion, if the menu has simple functions like start game, load game or exit, use the GUI method.

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

23 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Gamepad UI Controls: Always have the first button selected. 0 Answers

How do I properly make assets for mobile games 1 Answer

Making a blocker like dropdown menu for another gameobject. 0 Answers

UI behavior on resolution change 1 Answer

Getting a slider's width to match the size of the group it's in? 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