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
)
Public Sub AddLine (
props As FastLineRendererProperties,
points As IList(Of Vector3),
segmentCallback As Action(Of FastLineRendererProperties),
Optional startCap As Boolean = false,
Optional endCap As Boolean = false
)
public:
void AddLine(
FastLineRendererProperties^ props,
IList<Vector3>^ points,
Action<FastLineRendererProperties^>^ segmentCallback,
bool startCap = false,
bool endCap = false
)
member AddLine :
props : FastLineRendererProperties *
points : IList<Vector3> *
segmentCallback : Action<FastLineRendererProperties> *
?startCap : bool *
?endCap : bool
(* Defaults:
let _startCap = defaultArg startCap false
let _endCap = defaultArg endCap false
*)
-> unit
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