Scripting API

LineRenderer

class in UnityEngine · UnityEngine.CoreModule · inherits from LineRendererBase

26 of 26 of Unity's membersUnity's documentation
In Tassix

Draws a strip through a list of points.

Properties 4

bool loop { get; set; }
int numPositions { get; set; }
int positionCount { get; set; }
bool useWorldSpace { get; set; }

Methods 6

Vector3 GetPosition(int index)
int GetPositions(Vector3[] positions)
int GetPositions(NativeArray<Vector3> positions)
void SetPosition(int index, Vector3 position)
void SetPositions(Vector3[] positions)
void SetPositions(NativeArray<Vector3> positions)
void SetPositions(NativeSlice<Vector3> positions)
void SetVertexCount(int count)
void Simplify(float tolerance)

Drops points within tolerance of the line through the points kept (Ramer-Douglas-Peucker).

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.