-
Notifications
You must be signed in to change notification settings - Fork 0
Lines
Jon McCreadie edited this page Oct 26, 2024
·
4 revisions
Draws a line from Origin Transform to a target position.
| Type | Property |
Result |
|---|---|---|
| Transform | Target Transform |
The referenced transform controls the end point of the line. |
| Vector3 | Target Position |
Only visible if Target Transform is null. Directly Set the end point of the line as a world position. |
Unity - Scripting API: Gizmos.DrawLine
Draws multiple lines between pairs of points. More efficient than multiple Line gizmos.
| Type | Property |
Result |
|---|---|---|
| bool | Use Transform Array |
Use transforms instead of directly setting each point as a world position. |
| Vector3[] | Points |
Visible if UseTransformArray is false. Array of Vector3 point pairs for lines to be drawn between. |
| Transform[] | Transform Points |
Visible if Use Transform Array is true. Array of Transform point pairs for lines to be drawn between. |
Unity - Scripting API: Gizmos.DrawLineList
Draw a line between each point in the list.
| Type | Property |
Result |
|---|---|---|
| bool | Use Transform Array |
Use transforms instead of directly setting each point as a world position. |
| bool | Looped |
Should the last point in the array draw a line back to the first point. |
| Vector3[] | Points |
Visible if UseTransformArray is false. Array of Vector3 point pairs. |
| Transform[] | Transform Points |
Visible if Use Transform Array is true. Array of Transform point pairs. |