docs.unity3d.com
    Show / Hide Table of Contents

    Class CornerSprite

    Corner Sprite used to specify corner type and associated sprites.

    Inheritance
    Object
    CornerSprite
    Namespace: UnityEngine.U2D
    Syntax
    public class CornerSprite : ICloneable

    Properties

    cornerType

    Type of corner.

    Declaration
    public CornerType cornerType { get; set; }
    Property Value
    Type Description
    CornerType

    sprites

    List of sprites associated with this corner.

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

    Methods

    Clone()

    Clone this object.

    Declaration
    public object Clone()
    Returns
    Type Description
    Object

    A CornerSprite 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 objects are equal.

    GetHashCode()

    Get hash code for this CornerSprite.

    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