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 Aaeronn09 · Aug 03, 2014 at 04:26 PM · guihud

gui or 3d model for hud ?

I am making a game and I m confused on making HUD. For my menu I used 3d models and animation but confused on HUD. Should I use unity's gui system to make HUD or even I can make using 3d model. How can I use 3d model as HUD. If I use model then how can I make stick at the top always? Any tips or link to any tutorial..

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 meat5000 ♦ · Aug 03, 2014 at 04:27 PM 0
Share

You can simple place it really close to the camera. You could even have a separate camera which only views the HUD.

I'd use GUI.

avatar image robertbu · Aug 03, 2014 at 04:41 PM 0
Share

It is likely that a majority of significant mobile games use world objects for their HUDs and other UI elements. World objects combined with a texture atlas can reduce the HUD or possibly all the UI to a single draw call. Without a texture atlas, which method (GUI, GUITexture, world Quad) is less clear, and each element produces a single draw call. All have their strengths and issues. As for keeping the 3D model at the top of the screen, you can just parent the model to the camera. But usually it is done as @meat5000 suggests, by using a second camera and placing the HUD elements on their own layer only seen by this second camera. Getting the second camera setup right is a bit fussy, but the steps have been outline on UA many times.

1 Reply

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

Answer by Mmmpies · Aug 03, 2014 at 06:51 PM

Just done something very similar but using DFGUI and went with a background GUI with 3D floating on top. Daikon Forge doesn't naturally support 3D if you only have Unity free like me (or indie if you prefer that name) but I found the standard OnGUI massively slows framerate. In fact I got better framerates with 3D objects rotating in the "chest" screen than with OnGUI and simple text icon.

Whatever you're using though this tutorial on using an additional camera for displaying 3D object above a 2D menu will help you.

http://www.41post.com/3255/programming/unity3d-creating-a-gui-with-both-3d-and-2d-elements

Comment
Add comment · Show 2 · 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 Aaeronn09 · Aug 03, 2014 at 08:48 PM 0
Share

thanx dude m thinking to use ngui...

avatar image Mmmpies · Aug 03, 2014 at 09:04 PM 0
Share

No problem, I've got NGUI as well (when it was on 24 hour sale) but not got round to using it yet. Seen loads of people saying DFGUI is more structured and not as messy as NGUI so I went with that. That said, I just advised you to add an extra camera and scripts which is exactly why people say NGUI is messy, so just go with whatever works for you :¬)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

[SOLVED] HUD ammo counter showing up only when a bullet is fired 0 Answers

Render Sprite on Screen at 3d game 0 Answers

A GUI menu solution 0 Answers

Where to learn GUI ? 2 Answers

Raycasting and GUI 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