Class AngleRangeGUI
Inheritance
System.Object
AngleRangeGUI
Syntax
public class AngleRangeGUI
Fields
kLeftHandleHashCode
Declaration
public static readonly int kLeftHandleHashCode
Field Value
Type |
Description |
System.Int32 |
|
kRangeWidth
Declaration
public const float kRangeWidth = 10F
Field Value
Type |
Description |
System.Single |
|
kRightHandleHashCode
Declaration
public static readonly int kRightHandleHashCode
Field Value
Type |
Description |
System.Int32 |
|
Methods
AngleField(Rect, Int32, SerializedProperty, Single, Vector2, Single, Single, Single, Boolean, Boolean, Boolean, Handles.CapFunction)
Declaration
public static void AngleField(Rect r, int id, SerializedProperty property, float angleOffset, Vector2 handleOffset, float handleAngle, float handleSize, float radius, bool snap, bool drawLine, bool drawCircle, Handles.CapFunction drawCapFunction)
Parameters
Type |
Name |
Description |
Rect |
r |
|
System.Int32 |
id |
|
SerializedProperty |
property |
|
System.Single |
angleOffset |
|
Vector2 |
handleOffset |
|
System.Single |
handleAngle |
|
System.Single |
handleSize |
|
System.Single |
radius |
|
System.Boolean |
snap |
|
System.Boolean |
drawLine |
|
System.Boolean |
drawCircle |
|
Handles.CapFunction |
drawCapFunction |
|
AngleField(Rect, Int32, Single, Single, Vector2, Single, Single, Single, Boolean, Boolean, Boolean, Handles.CapFunction)
Declaration
public static float AngleField(Rect rect, int id, float angle, float angleOffset, Vector2 handleOffset, float handleAngle, float handleSize, float radius, bool snap, bool drawLine, bool drawCircle, Handles.CapFunction drawCapFunction)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Int32 |
id |
|
System.Single |
angle |
|
System.Single |
angleOffset |
|
Vector2 |
handleOffset |
|
System.Single |
handleAngle |
|
System.Single |
handleSize |
|
System.Single |
radius |
|
System.Boolean |
snap |
|
System.Boolean |
drawLine |
|
System.Boolean |
drawCircle |
|
Handles.CapFunction |
drawCapFunction |
|
Returns
Type |
Description |
System.Single |
|
AngleField(Int32, SerializedProperty, Single, Vector2, Single, Single, Single, Boolean, Boolean, Boolean, Handles.CapFunction)
Declaration
public static void AngleField(int id, SerializedProperty property, float angleOffset, Vector2 handleOffset, float handleAngle, float handleSize, float radius, bool snap, bool drawLine, bool drawCircle, Handles.CapFunction drawCapFunction)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
SerializedProperty |
property |
|
System.Single |
angleOffset |
|
Vector2 |
handleOffset |
|
System.Single |
handleAngle |
|
System.Single |
handleSize |
|
System.Single |
radius |
|
System.Boolean |
snap |
|
System.Boolean |
drawLine |
|
System.Boolean |
drawCircle |
|
Handles.CapFunction |
drawCapFunction |
|
AngleField(Int32, Single, Single, Vector2, Single, Single, Single, Boolean, Boolean, Boolean, Handles.CapFunction)
Declaration
public static float AngleField(int id, float angle, float angleOffset, Vector2 handleOffset, float handleAngle, float radius, float handleSize, bool snap, bool drawLine, bool drawCircle, Handles.CapFunction drawCapFunction)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Single |
angle |
|
System.Single |
angleOffset |
|
Vector2 |
handleOffset |
|
System.Single |
handleAngle |
|
System.Single |
radius |
|
System.Single |
handleSize |
|
System.Boolean |
snap |
|
System.Boolean |
drawLine |
|
System.Boolean |
drawCircle |
|
Handles.CapFunction |
drawCapFunction |
|
Returns
Type |
Description |
System.Single |
|
AngleRangeField(Rect, SerializedProperty, SerializedProperty, Single, Single, Boolean, Boolean, Boolean, Color)
Declaration
public static void AngleRangeField(Rect rect, SerializedProperty startProperty, SerializedProperty endProperty, float angleOffset, float radius, bool snap, bool drawLine, bool drawCircle, Color rangeColor)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
SerializedProperty |
startProperty |
|
SerializedProperty |
endProperty |
|
System.Single |
angleOffset |
|
System.Single |
radius |
|
System.Boolean |
snap |
|
System.Boolean |
drawLine |
|
System.Boolean |
drawCircle |
|
Color |
rangeColor |
|
AngleRangeField(Rect, Int32, Int32, ref Single, ref Single, Single, Single, Boolean, Boolean, Boolean, Color)
Declaration
public static void AngleRangeField(Rect rect, int leftHandleID, int rightHandleID, ref float start, ref float end, float angleOffset, float radius, bool snap, bool drawLine, bool drawCircle, Color rangeColor)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Int32 |
leftHandleID |
|
System.Int32 |
rightHandleID |
|
System.Single |
start |
|
System.Single |
end |
|
System.Single |
angleOffset |
|
System.Single |
radius |
|
System.Boolean |
snap |
|
System.Boolean |
drawLine |
|
System.Boolean |
drawCircle |
|
Color |
rangeColor |
|
AngleRangeField(Rect, ref Single, ref Single, Single, Single, Boolean, Boolean, Boolean, Color)
Declaration
public static void AngleRangeField(Rect rect, ref float start, ref float end, float angleOffset, float radius, bool snap, bool drawLine, bool drawCircle, Color rangeColor)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Single |
start |
|
System.Single |
end |
|
System.Single |
angleOffset |
|
System.Single |
radius |
|
System.Boolean |
snap |
|
System.Boolean |
drawLine |
|
System.Boolean |
drawCircle |
|
Color |
rangeColor |
|