drawminmaxarc - eisclimber/ExPresS-XR GitHub Wiki
GizmoUtils.DrawMinMaxArc(float,float,Color,Color,Color,Vector3,Vector3,Transform,string,string,string)
Method in GizmoUtils
Draws an arc between two angles (minimum and maximum) relative to the normal plane defined by localNormal
and origin localOffset .
public static void DrawMinMaxArc(float minAngle, float maxAngle, Color minColor, Color maxColor, Color arcColor, Vector3 localOffset, Vector3 localNormal, Transform atTransform = null, string minLabel = "", string maxLabel = "", string valueFormat = "")| Name | Description |
|---|---|
float minAngle |
Minimum angle. |
float maxAngle |
Maximum angle. |
UnityEngine.Color minColor |
Color of the minimum marker. |
UnityEngine.Color maxColor |
Color of the maximum marker. |
UnityEngine.Color arcColor |
Color of the arc between the angels. |
UnityEngine.Vector3 localOffset |
Pivot offset of the angle. |
UnityEngine.Vector3 localNormal |
Normal vector defining the plane of the angles. |
UnityEngine.Transform atTransform |
Transform context to draw the gizmo. |
string minLabel |
Text label to draw at the start (=min) of the marker line. |
string maxLabel |
Text label to draw at the end (=max) of the marker line. |
string valueFormat |
Format used to display the value. No text will be shown if empty. |