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
)
Public Sub AppendArc (
props As FastLineRendererProperties,
center As Vector3,
radius As Single,
startAngle As Single,
endAngle As Single,
numberOfSegments As Integer,
axis As Vector3,
Optional close As Boolean = false,
Optional animationTime As Single = 0F
)
public:
void AppendArc(
FastLineRendererProperties^ props,
Vector3 center,
float radius,
float startAngle,
float endAngle,
int numberOfSegments,
Vector3 axis,
bool close = false,
float animationTime = 0f
)
member AppendArc :
props : FastLineRendererProperties *
center : Vector3 *
radius : float32 *
startAngle : float32 *
endAngle : float32 *
numberOfSegments : int *
axis : Vector3 *
?close : bool *
?animationTime : float32
(* Defaults:
let _close = defaultArg close false
let _animationTime = defaultArg animationTime 0f
*)
-> unit
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