docs.unity.cn
    Show / Hide Table of Contents

    Class AngleRange

    Angle Range defines constraints and list of sprites to be used to render edges of SpriteShape.

    Inheritance
    Object
    AngleRange
    Inherited Members
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.U2D
    Syntax
    [Serializable]
    public class AngleRange : ICloneable

    Properties

    end

    End angle of AngleRange. Angles cannot overlap with others.

    Declaration
    public float end { get; set; }
    Property Value
    Type Description
    Single

    order

    Render order for this AngleRange.

    Declaration
    public int order { get; set; }
    Property Value
    Type Description
    Int32

    sprites

    List of sprites that are used to render the edge. The sprite index of control point can be used to select the one to be used for rendering.

    Declaration
    public List<Sprite> sprites { get; set; }
    Property Value
    Type Description
    List<Sprite>

    start

    Start angle of AngleRange.

    Declaration
    public float start { get; set; }
    Property Value
    Type Description
    Single

    Methods

    Clone()

    Clone object.

    Declaration
    public object Clone()
    Returns
    Type Description
    Object

    Cloned Angle Range Object.

    Implements
    ICloneable.Clone()

    Equals(Object)

    Test for Equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    Object to test against.

    Returns
    Type Description
    Boolean

    True if Equal.

    Overrides
    Object.Equals(Object)

    GetHashCode()

    Get hash code for this AngleRange.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code as int.

    Overrides
    Object.GetHashCode()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, September 4, 2023