- Home /
Have a line renderer appear over a sprite?
Hi. Is it possible to have a have a line renderer appear over a sprite? Whenever I try to use a sprite as a background, the line renderer is always covered up. Thanks.
This works for me. What shaders are you using on your line and sprite? Is the line in front of the sprite in the world?
Answer by acorrow · Dec 12, 2015 at 02:24 AM
Sprite (2D) and Line Renderer (3D) don't really play well by default. You will need to (as a workaround, this is what I did) move the line renderer in front of the Sprite on the Z axis (assuming a 2D game here, since you are using Sprites).
There is no sorting layer to affect for the 3D Line Renderer, so it must be manually placed in front of the 2D object.
Your answer
Follow this Question
Related Questions
Line Renderer Ilumination 1 Answer
Does SetPropertyBlock work with new 2D SpriteRenderer? 1 Answer
Particle System Sorting Layer Refuses To Be Assigned 1 Answer
Sprite Shading 1 Answer