- Home /
How to change sorting layer of material/3D object so it appears in front of the sprites?
I've created transparent material for some 3D object that is supposed to appear in front of 2D sprites but you can't see it, sprites are drawn on the top of this 3D object. If I change sorting layer on sprites to something lower that Default layer and order in layer lower than 0 then I can see the object but if i set it to somehing higher then it dissapears. So it means that this 3D objects is besically on Default layer with order 0 but I can't find anywhere option to change it. Any Help?
Questions are the sprites in a Canvas? Are you using Screen Space Overlay?
materials have a renderqueue you can access on them to change. transparency starts at 3000 so you probably should set them to at least 3001
I'm using just regular sprites in game world with Sprite Renderer. Changing render queue actually only does something when sprites are on 'Default' layer with order 0, then yes - if render queue is below 3000 it appears behind and when it's above 3000 it's rendered on top of sprites. Though, that doesn't work with sprites that are with 'Default' layer and order 1 or above that. $$anonymous$$aybe that will help - when material is standard with Rendering mode set to opaque everying works fine, object appears in front, but when I set it to Transparent it dissapears, it's drawn behind sprites.
Your answer
Follow this Question
Related Questions
Sorting layer issues with materials 0 Answers
Overlay texture on sprite 0 Answers
Sprite and Material 0 Answers