docs.unity3d.com
    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
    Namespace: UnityEngine.U2D
    Syntax
    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.

    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.

    GetHashCode()

    Get hash code for this AngleRange.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code as int.

    Back to top
    Terms of use
    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