Class AngleRangeGUI | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AngleRangeGUI

    Inheritance
    System.Object
    AngleRangeGUI
    Namespace: UnityEditor.U2D
    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023