Click or drag to resize

FastLineRendererAddLine Method (FastLineRendererProperties, IListVector3, ActionFastLineRendererProperties, Boolean, Boolean)

Adds a line that starts at the first point in the list and ends at the last point of the list

Namespace:  DigitalRuby.FastLineRenderer
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void AddLine(
	FastLineRendererProperties props,
	IList<Vector3> points,
	Action<FastLineRendererProperties> segmentCallback,
	bool startCap = false,
	bool endCap = false
)

Parameters

props
Type: DigitalRuby.FastLineRendererFastLineRendererProperties
Creation properties
points
Type: System.Collections.GenericIListVector3
Points that will make up the line
segmentCallback
Type: SystemActionFastLineRendererProperties
Optional callback for each line segment so you can change the properties per segment if desired
startCap (Optional)
Type: SystemBoolean
Whether to add a start cap
endCap (Optional)
Type: SystemBoolean
Whether to add an end cap
See Also