FastLineRendererAppendCurve Method |
Append a quad/bezier curve to the fast line renderer. The line curves from props.Start to props.End, using the two control points to curve.
Namespace:
DigitalRuby.FastLineRenderer
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public void AppendCurve(
FastLineRendererProperties props,
Vector3 ctr1,
Vector3 ctr2,
int numberOfSegments,
bool startCap,
bool endCap,
float animationTime = 0f
)
Public Sub AppendCurve (
props As FastLineRendererProperties,
ctr1 As Vector3,
ctr2 As Vector3,
numberOfSegments As Integer,
startCap As Boolean,
endCap As Boolean,
Optional animationTime As Single = 0F
)
public:
void AppendCurve(
FastLineRendererProperties^ props,
Vector3 ctr1,
Vector3 ctr2,
int numberOfSegments,
bool startCap,
bool endCap,
float animationTime = 0f
)
member AppendCurve :
props : FastLineRendererProperties *
ctr1 : Vector3 *
ctr2 : Vector3 *
numberOfSegments : int *
startCap : bool *
endCap : bool *
?animationTime : float32
(* Defaults:
let _animationTime = defaultArg animationTime 0f
*)
-> unit
Parameters
- props
- Type: DigitalRuby.FastLineRendererFastLineRendererProperties
Line properties - ctr1
- Type: Vector3
Control point 1 - ctr2
- Type: Vector3
Control point 2 - numberOfSegments
- Type: SystemInt32
Number of segments. The higher the better quality but more CPU and GPU usage. - startCap
- Type: SystemBoolean
Whether to add a start cap - endCap
- Type: SystemBoolean
Whether to add an end cap - animationTime (Optional)
- Type: SystemSingle
The time it takes for each line segment of the spline to animate in
See Also