How to render UI Text in front of 3d gameObject on ScreenSpace Camera
I have a ScreenSpace Camera Canvas using a perspective camera. It has a Clear Flags: Depth only, Culling mask: UI
I'm using the canvas type so I can have 3d objects on my UI layer inside the screenspace camera canvas. I want to be able to place UI text in front of the 3d gameobjects on the UI but I can't seem to get it to work.
The text posZ is pulled in front of the 3d game object (sphere) but it doesn't seem to affect the actual render. The text is always obscured by the sphere.
Screenshots: https://www.dropbox.com/s/h6cyg6ftkfry2z4/Screenshot%202016-02-19%2017.28.30.png?dl=0 https://www.dropbox.com/s/2y93tzcg7dcsqkv/Screenshot%202016-02-19%2017.37.11.png?dl=0
Comment