- Home /
Want my UI to not move when I move my camera?
Right now, I have the timer and score set up as Text UI things via canvas. I placed them in front of my FPS controller camera, but its annoying because my terrain is mountainous and whenever I turn, the time and score get submerged in the mountain and I can't see them unless I move my camera out of sight of any obstacles. Is there a way that I set my score and timer text UIs so that regardless of where I turn, I can always see them clearly?
Well are you using 3D text, legacy, or the new UI system? If you're using the new UI system, is it a world space canvas?
Answer by jeffonsea · Apr 29, 2016 at 03:23 PM
@DarthBane what render mode is your canvas component set to ?
Depending on the effect you want to get with your UI you will have to set the render mode of your canvas component to Screen Space Overlay or Screen Space Camera.
If you want it to be on top of everything else on screen you will have to put it on Screen Space Overlay mode, and make sure your Sort Order is lower than any other canvas element you are using.
A different aproach could be using a UIShader that set the render queu to overlay on a Screen Space Camera canvas.
I sugest you have a look at the canvas tutorial , this is the link.
Hope i helped you out. Good Luck.
Your answer
Follow this Question
Related Questions
Disable and Enable UI text in function 1 Answer
Text UI broken after changing alpha color of single letters 1 Answer
"/n" not working 2 Answers
Cannot drag text object into inspector 2 Answers