How to place object with LineRenderer component behind the same UI-object, but in front of the other

I use “World Space” in Render Mode of my Canvas. I do not understand how this works. I place LineRenderer in Canvas and outside Canvas, but depth placement of lines don’t work.

I used Sprites-default shader in LineRenderer. I changed shader to another one and depth placement of lines was working.

1 Like