FastLineRendererAddLines Method |
Add distinct line segments from a list. The list must contain start and end points, repeating for each segment.
Namespace:
DigitalRuby.FastLineRenderer
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public void AddLines(
FastLineRendererProperties props,
IList<Vector3> points,
Action<FastLineRendererProperties> segmentCallback,
bool startCap = false,
bool endCap = false
)
Public Sub AddLines (
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 AddLines(
FastLineRendererProperties^ props,
IList<Vector3>^ points,
Action<FastLineRendererProperties^>^ segmentCallback,
bool startCap = false,
bool endCap = false
)
member AddLines :
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
List of points - 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 start caps - endCap (Optional)
- Type: SystemBoolean
Whether to add end caps
See Also