Class CornerSprite
Corner Sprite used to specify corner type and associated sprites.
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. |