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 RetepTrun · Oct 24, 2014 at 09:31 PM · camera4.6hudbetascreenspace

screen space camera hud (4.6 beta)

I am making a fps, I would like to give to the health bars, inventory and ammo count a 3d look.

So I chose screenspace - camera.

The problem is:

  • If the canvas plane close to camera then gui lags behind camera movement

  • If canvas plane far then gui gets hidden behind terrain and other objects.

Help please?

alt text

unityproblem.png (336.8 kB)
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 NirielNabokov · Jan 04, 2015 at 10:18 AM 0
Share

Have you solved this problem? I just bumped into it myself.

avatar image RetepTrun · Jan 04, 2015 at 02:25 PM 0
Share

No solution. I canceled the features that wanted it. No more 3d hud in my game anymore.

2 Replies

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

Answer by Cyborgking · Jan 04, 2015 at 04:09 PM

What you can do is create a new camera and use it for the hud. Set it to depth only and make the depth the highest of all camera's. Make sure the near clipping is lower than the plane clipping distance of the canvas or parts of the hud won't show. Set the hud ui to a unique layer and set the culling mask of the camera to that layer. This all will prevent the hud from getting hidden by other objects.

Attach the camera to some view that you control so that you won't have lag.

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 RetepTrun · Jan 05, 2015 at 12:50 AM 0
Share

Thanks, works good.

avatar image
0

Answer by Kiwasi · Oct 24, 2014 at 11:19 PM

Try screen space - overlay. This will render everything last (ie on top of the world)

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 RetepTrun · Oct 25, 2014 at 04:14 PM 0
Share

but if I do that then I loose the 3d depth effect.

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

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

Related Questions

Anchor a 3D object to a camera's viewport coordinate? 0 Answers

How to have no alignment 4.6 GUI 0 Answers

Who i can rotate new UI Image element? 2 Answers

scale plane to fit to screen size 0 Answers

Recreating basic function in C# 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