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

    Class AngleRangeGUI

    Inheritance
    System.Object
    AngleRangeGUI
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.U2D
    Syntax
    public class AngleRangeGUI

    Fields

    kRangeWidth

    Declaration
    public const float kRangeWidth = 10F
    Field Value
    Type Description
    System.Single

    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(SerializedProperty, SerializedProperty, Single, Single, Boolean, Boolean, Boolean, Color)

    Declaration
    public static void AngleRangeField(SerializedProperty startProperty, SerializedProperty endProperty, float angleOffset, float radius, bool snap, bool drawLine, bool drawCircle, Color rangeColor)
    Parameters
    Type Name Description
    SerializedProperty startProperty
    SerializedProperty endProperty
    System.Single angleOffset
    System.Single radius
    System.Boolean snap
    System.Boolean drawLine
    System.Boolean drawCircle
    Color rangeColor

    AngleRangeListField(Rect, SerializedProperty, Int32, Single, Single, Boolean, Color, Color, Color)

    Declaration
    public static int AngleRangeListField(Rect rect, SerializedProperty rangeListProperty, int selected, float angleOffset, float radius, bool snap, Color gradientMin, Color gradientMid, Color gradientMax)
    Parameters
    Type Name Description
    Rect rect
    SerializedProperty rangeListProperty
    System.Int32 selected
    System.Single angleOffset
    System.Single radius
    System.Boolean snap
    Color gradientMin
    Color gradientMid
    Color gradientMax
    Returns
    Type Description
    System.Int32

    AngleRangeListField(SerializedProperty, Int32, Single, Single, Boolean, Color, Color, Color)

    Declaration
    public static int AngleRangeListField(SerializedProperty rangeListProperty, int selected, float angleOffset, float radius, bool snap, Color gradientMin, Color gradientMid, Color gradientMax)
    Parameters
    Type Name Description
    SerializedProperty rangeListProperty
    System.Int32 selected
    System.Single angleOffset
    System.Single radius
    System.Boolean snap
    Color gradientMin
    Color gradientMid
    Color gradientMax
    Returns
    Type Description
    System.Int32

    GetAngleFieldState(Int32)

    Declaration
    public static AngleRangeGUI.AngleFieldState GetAngleFieldState(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    AngleRangeGUI.AngleFieldState

    GetNewRangeBounds(SerializedProperty, Single, out Single, out Single)

    Declaration
    public static bool GetNewRangeBounds(SerializedProperty rangeListProperty, float angle, out float emptyRangeStart, out float emptyRangeEnd)
    Parameters
    Type Name Description
    SerializedProperty rangeListProperty
    System.Single angle
    System.Single emptyRangeStart
    System.Single emptyRangeEnd
    Returns
    Type Description
    System.Boolean

    HandleAddRange(Rect, SerializedProperty, Int32, Single, Single)

    Declaration
    public static int HandleAddRange(Rect rect, SerializedProperty rangeListProperty, int selected, float radius, float angleOffset)
    Parameters
    Type Name Description
    Rect rect
    SerializedProperty rangeListProperty
    System.Int32 selected
    System.Single radius
    System.Single angleOffset
    Returns
    Type Description
    System.Int32

    HandleAddRangeFromAngle(SerializedProperty, Single, Int32)

    Declaration
    public static int HandleAddRangeFromAngle(SerializedProperty rangeListProperty, float angle, int selected)
    Parameters
    Type Name Description
    SerializedProperty rangeListProperty
    System.Single angle
    System.Int32 selected
    Returns
    Type Description
    System.Int32

    HandleRemoveRange(SerializedProperty, Int32)

    Declaration
    public static int HandleRemoveRange(SerializedProperty rangeListProperty, int selected)
    Parameters
    Type Name Description
    SerializedProperty rangeListProperty
    System.Int32 selected
    Returns
    Type Description
    System.Int32

    ValidateRange(SerializedProperty, Int32, Single, Single)

    Declaration
    public static void ValidateRange(SerializedProperty rangeListProperty, int index, float prevStart, float prevEnd)
    Parameters
    Type Name Description
    SerializedProperty rangeListProperty
    System.Int32 index
    System.Single prevStart
    System.Single prevEnd

    ValidateRangeStartEnd(ref Single, ref Single, Single, Single, Single, Single)

    Declaration
    public static void ValidateRangeStartEnd(ref float start, ref float end, float prevStart, float prevEnd, float otherStart, float otherEnd)
    Parameters
    Type Name Description
    System.Single start
    System.Single end
    System.Single prevStart
    System.Single prevEnd
    System.Single otherStart
    System.Single otherEnd
    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