- Home /
Transparent object is behind Text but still affects it
I have an object in the scene which uses transparency and my intention is to have text positioned in the scene and displayed on top of the translucent object. Below you can see this working correctly:
If I move the camera in the scene then sometimes the text appears as if it is behind the transparent object, even though the only thing moving is the camera. Below you can see the exact same scene but from a position ever so slightly to one side:
Why does this happen? And how can I fix this?
Notes:
For the translucent object I am using the standard shader and set the rendering mode to transparent
I have tried using the fade rendering mode but the issues persists
With the opaque rendering mode there is no issue and text is always in front
did you put that text("Previous") on the camera as a child? if you did, then if the camera moves so will the text. and the text moves towards the background and now making the text be behind the transparent background..
@Rhylvin2015 No, it is the child of a canvas object which has no parents and never moves.
I'm having the same problem in my project.
@Dudledok, were you able to find a solution to this issue? Thanks!
No, unfortunately not, and I haven't worked on that project in a while so I can't help much any more, sorry.
Do they have the same parent? If the background object is lower in the hierarchy, it will be rendered later. That can be solved if you move the text under the background or make the text child of the background.
Have you tried modifying the "Pos Z" property of the text to be above the background?