- Home /
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?
Have you solved this problem? I just bumped into it myself.
No solution. I canceled the features that wanted it. No more 3d hud in my game anymore.
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.
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)
Your answer
Follow this Question
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