docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CornerSprite

    Corner Sprite used to specify corner type and associated sprites.

    Inheritance
    object
    CornerSprite
    Implements
    ICloneable
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.U2D
    Assembly: Unity.2D.SpriteShape.Runtime.dll
    Syntax
    [Serializable]
    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
    bool

    True if objects are equal.

    Overrides
    object.Equals(object)

    GetHashCode()

    Get hash code for this CornerSprite.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code as int.

    Overrides
    object.GetHashCode()

    Implements

    ICloneable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)