Skip to content

Commit 0c6fd4d

Browse files
Update LineRenderer docs
1 parent 897f2d7 commit 0c6fd4d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Controls/UILineRenderer.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ Graphic control for drawing lines in the UI System
3030

3131
The UI Line Renderer allows you to draw distinct Line primitives between a collection of points on a Canvas.
3232

33-
![](Images/UILineRendererInspector.jpg)
33+
![UI LineRenderer Inspector](Images/UILineRendererInspector.jpg)
3434

3535
Settings can be set either in the inspector or via script programmatically.
3636

37+
> Due to the way UI Rendering occurs, a UI LineRenderer component should ONLY be placed in their own child RectTransforms positioned at (0,0,0). Having a UILineRenderer RectTransform at anything other than (0,0,0) will produce odd results as the offset from 0 is not handled.
38+
>
39+
> This includes any components that depend on the UILineRender, such as the UILineConnector. These do not need to be included within objects they are drawing, as they handle rendering for the entire canvas.
40+
>
41+
> See the LineRenderer examples for clarity.
42+
3743
---------
3844

3945
## Properties

0 commit comments

Comments
 (0)