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

    Class AngleRangeView

    Inheritance
    System.Object
    AngleRangeView
    Namespace: UnityEditor.U2D
    Syntax
    public class AngleRangeView : IAngleRangeView

    Properties

    hoveredRangeIndex

    Declaration
    public int hoveredRangeIndex { get; }
    Property Value
    Type Description
    System.Int32
    Implements
    IAngleRangeView.hoveredRangeIndex

    Methods

    DoAngleRange(Int32, Rect, Single, Single, ref Single, ref Single, Boolean, Boolean, Color, Color, Color)

    Declaration
    public bool DoAngleRange(int index, Rect rect, float radius, float angleOffset, ref float start, ref float end, bool snap, bool disabled, Color gradientMin, Color gradientMid, Color gradientMax)
    Parameters
    Type Name Description
    System.Int32 index
    Rect rect
    System.Single radius
    System.Single angleOffset
    System.Single start
    System.Single end
    System.Boolean snap
    System.Boolean disabled
    Color gradientMin
    Color gradientMid
    Color gradientMax
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.DoAngleRange(Int32, Rect, Single, Single, ref Single, ref Single, Boolean, Boolean, Color, Color, Color)

    DoCreateRange(Rect, Single, Single, Single, Single)

    Declaration
    public bool DoCreateRange(Rect rect, float radius, float angleOffset, float start, float end)
    Parameters
    Type Name Description
    Rect rect
    System.Single radius
    System.Single angleOffset
    System.Single start
    System.Single end
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.DoCreateRange(Rect, Single, Single, Single, Single)

    DoCreateRangeTooltip()

    Declaration
    public void DoCreateRangeTooltip()
    Implements
    IAngleRangeView.DoCreateRangeTooltip()

    DoRemoveRange()

    Declaration
    public bool DoRemoveRange()
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.DoRemoveRange()

    DoSelectAngleRange(Int32, out Int32)

    Declaration
    public bool DoSelectAngleRange(int currentSelected, out int newSelected)
    Parameters
    Type Name Description
    System.Int32 currentSelected
    System.Int32 newSelected
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.DoSelectAngleRange(Int32, out Int32)

    DoSelector(Rect, Single, Single, Single, out Single)

    Declaration
    public bool DoSelector(Rect rect, float angleOffset, float radius, float angle, out float newAngle)
    Parameters
    Type Name Description
    Rect rect
    System.Single angleOffset
    System.Single radius
    System.Single angle
    System.Single newAngle
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.DoSelector(Rect, Single, Single, Single, out Single)

    DrawAngleRangeOutline(Rect, Single, Single, Single, Single)

    Declaration
    public void DrawAngleRangeOutline(Rect rect, float start, float end, float angleOffset, float radius)
    Parameters
    Type Name Description
    Rect rect
    System.Single start
    System.Single end
    System.Single angleOffset
    System.Single radius
    Implements
    IAngleRangeView.DrawAngleRangeOutline(Rect, Single, Single, Single, Single)

    GetAngleFromPosition(Rect, Single)

    Declaration
    public float GetAngleFromPosition(Rect rect, float angleOffset)
    Parameters
    Type Name Description
    Rect rect
    System.Single angleOffset
    Returns
    Type Description
    System.Single
    Implements
    IAngleRangeView.GetAngleFromPosition(Rect, Single)

    IsActionActive(AngleRangeAction)

    Declaration
    public bool IsActionActive(AngleRangeAction action)
    Parameters
    Type Name Description
    AngleRangeAction action
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.IsActionActive(AngleRangeAction)

    IsActionFinishing(AngleRangeAction)

    Declaration
    public bool IsActionFinishing(AngleRangeAction action)
    Parameters
    Type Name Description
    AngleRangeAction action
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.IsActionFinishing(AngleRangeAction)

    IsActionHot(AngleRangeAction)

    Declaration
    public bool IsActionHot(AngleRangeAction action)
    Parameters
    Type Name Description
    AngleRangeAction action
    Returns
    Type Description
    System.Boolean

    IsActionTriggering(AngleRangeAction)

    Declaration
    public bool IsActionTriggering(AngleRangeAction action)
    Parameters
    Type Name Description
    AngleRangeAction action
    Returns
    Type Description
    System.Boolean
    Implements
    IAngleRangeView.IsActionTriggering(AngleRangeAction)

    Repaint()

    Declaration
    public void Repaint()
    Implements
    IAngleRangeView.Repaint()

    RequestFocusIndex(Int32)

    Declaration
    public void RequestFocusIndex(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Implements
    IAngleRangeView.RequestFocusIndex(Int32)

    SetupLayout(Rect, Single, Single)

    Declaration
    public void SetupLayout(Rect rect, float angleOffset, float radius)
    Parameters
    Type Name Description
    Rect rect
    System.Single angleOffset
    System.Single radius
    Implements
    IAngleRangeView.SetupLayout(Rect, Single, Single)
    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