- Home /
MeshRenderer with GUI/Text Shader is always in front of my 3D objects, how do I fix this?
I have a gameobject that is just a meshrenderer with the GUI/Text shader, the reason why it has a GUI/text shader is so that it always renders on top of my particles, so even if you could not see anything because of the particles, you can still see the objects that have the GUI/text shader.
The problem is that I also have 3D object, just a mesh renderer with the default shader nothing fancy, but no matter what I try the GUI objects are always in front of the 3D object while what I want is the 3D object to be above it, I have tried assigning layers by script and all that and moving Z positions but nothing seems to change it any help would be greatly appeciated.
try setting higher sortingOrder in $$anonymous$$eshRenderer of 3D object.
Your answer
Follow this Question
Related Questions
Can a shader be made to ignore a layer/s? 1 Answer
Pro Glow showing through GUI layer 0 Answers
Pixelart camera shader 2 Answers
Changing the colour of my shaders through GUI Colour palette? 0 Answers
Unity - Simple Water 3 Answers