Skip to content
Jon McCreadie edited this page Oct 26, 2024 · 4 revisions

Line

Screenshot 2024-10-15 022406

Description

Draws a line from Origin Transform to a target position.

Serialized Properties

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 Docs

Unity - Scripting API: Gizmos.DrawLine

Line List

Screenshot 2024-10-15 022851

Description

Draws multiple lines between pairs of points. More efficient than multiple Line gizmos.

Serialised properties

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 Docs

Unity - Scripting API: Gizmos.DrawLineList

Line Strip

Screenshot 2024-10-15 022919

Description

Draw a line between each point in the list.

Serialised properties

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.

Unity Docs

Unity - Scripting API: Gizmos.DrawLineStrip

Clone this wiki locally