How the geometryRenderer display with other object?

I was draw the line using geometryRenderer.
But i don’t understand clearly about it.
My problem is the line is on the top of other object.
Can someone explain it help me?
Or any idea better to draw this line :slight_smile:
Thank you!
image

你可以 用一张 矩形 sliced模式来画线

1赞

geometryRenderer is used to debug the objects, which is highest priority. For the pool game, you could use line comp for the guide line

1赞

Thank you for your suggest
I used the Line component, and when i put the Points in to it.
It will generate to the wrong display when i use more than 2 points.
I dont’s know that’s bug or somthing else?
(I’m stupid, just use more than 1 lines to resolve it :D)
====== > I think, may be the Line component support mutil points, it will be more friendly and easier.

Thank you.
About sliced ​​pattern?
Is this create an object and scale it?

Can you posts the screenshots and line comp properties

Here is it.
The expectation is the yellow line
In fact, it is the white line.