Struct CharacterPart
Data structure representing a character part
Namespace: UnityEditor.U2D.Animation
Syntax
[Serializable]
public struct CharacterPart : ICharacterOrder
Fields
bones
Bones influencing the Sprite
Declaration
public int[] bones
Field Value
| Type | Description |
|---|---|
| Int32[] |
parentGroup
CharacterGroup that the part belongs to
Declaration
public int parentGroup
Field Value
| Type | Description |
|---|---|
| Int32 |
spriteId
Sprite ID
Declaration
public string spriteId
Field Value
| Type | Description |
|---|---|
| String |
spritePosition
Position for the Sprite in the character
Declaration
public RectInt spritePosition
Field Value
| Type | Description |
|---|---|
| RectInt |
Properties
order
The order of the part in the list
Declaration
public int order { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |