#Why is my LineRenderer behind everything.

1 messages · Page 1 of 1 (latest)

crude flume
#

I’m new to unity and I’m making a fishing game. Basically I’m using a line renderer for casting but whatever I do it’s behind everything. I’ve tried sorting layers but those aren’t working. The only condition I got it to work was using a Z offset but that made it infrount of everything.

keen remnant
crude flume
keen remnant
crude flume
keen remnant
#

So which are your sprite and line renderers using?

crude flume
#

Oh let me se where I find that

crude flume
crude flume
#

What one of the objects that is covering the line

keen remnant
#

Is the material on your line "standard" or something else?

keen remnant
# crude flume

That's a 3D lit shader, not exactly a 2D shader
Do you intend to have 3D lighting on your line?

keen remnant
# crude flume 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