#Why is my LineRenderer behind everything.
1 messages · Page 1 of 1 (latest)
Line renderers use 2D sorting just like sprites, with Z position (average of the line points) and sorting layers:
https://docs.unity3d.com/Manual/2DSorting.html
But a compatible shader for 2D sorting is required, such as ParticlesUnlit
Sorting layers aren’t working for me
What shaders are your sprites and line renderer using then
I don’t have shaders on any of it
Can't render anything without a shader
That's why all renderer components must have a material
So which are your sprite and line renderers using?
Oh let me se where I find that
My line uses the standard shader and everything else uses default too
Be more specific
What one of the objects that is covering the line
Is the material on your line "standard" or something else?
Just standard
That's a 3D lit shader, not exactly a 2D shader
Do you intend to have 3D lighting on your line?
No
Then swap it for "Particles/Standard Unlit" and set Rendering Mode to Fade
Or alternatively "Legacy Shaders/Particles/Alpha Blended Premultiply" if you want the shader that's actually used for lines by default
I recommend the standard unlit particle shader but you can try the legacy one if you run into some issues