Class CornerSprite
Corner Sprite used to specify corner type and associated sprites.
Implements
Inherited Members
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
GetHashCode()
Get hash code for this CornerSprite.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Hash code as int. |