Click or drag to resize

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
)

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