Click or drag to resize

FastLineRendererAppendArc Method

Append an arc to the fast line renderer

Namespace:  DigitalRuby.FastLineRenderer
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void AppendArc(
	FastLineRendererProperties props,
	Vector3 center,
	float radius,
	float startAngle,
	float endAngle,
	int numberOfSegments,
	Vector3 axis,
	bool close = false,
	float animationTime = 0f
)

Parameters

props
Type: DigitalRuby.FastLineRendererFastLineRendererProperties
Properties
center
Type: Vector3
Center in world space
radius
Type: SystemSingle
Radius in world units
startAngle
Type: SystemSingle
Start angle in degrees (0-360) - for clockwise, make this larger than endAngle
endAngle
Type: SystemSingle
End angle in degrees (0-360) - for clockwise, make this smaller than startAngle
numberOfSegments
Type: SystemInt32
How many line segments the circle should be composed of. Will be raised to 4 if less than 4
axis
Type: Vector3
Axis to rotate around the center to add points. For 2D this is ignored.
close (Optional)
Type: SystemBoolean
Whether to close the arc - for a circle this should be true, but false otherwise
animationTime (Optional)
Type: SystemSingle
The time it takes for each line segment of the spline to animate in
See Also