LineRenderer
csharp
public class LineRenderer : RendererNamespace NodeWorld.Flux.
A line drawn between points (also the base of TrailRenderer's colors and widths).
Properties
positionCount
csharp
public int positionCount { get; set; }The number of points of the line.
useWorldSpace
csharp
public bool useWorldSpace { get; set; }The points are in world space (false: in the object's space).
startWidth
csharp
public float startWidth { get; set; }Width at the first point.
endWidth
csharp
public float endWidth { get; set; }Width at the last point.
startColor
csharp
public Color startColor { get; set; }Color at the first point.
endColor
csharp
public Color endColor { get; set; }Color at the last point.
Methods
SetPosition
csharp
public void SetPosition(int index, Vector3 position)Sets the point index (0 to positionCount - 1).
GetPosition
csharp
public Vector3 GetPosition(int index)The point index (0 to positionCount - 1).
SetPositions
csharp
public void SetPositions(Vector3[] positions)Sets every point: positionCount becomes their number.
