Struct CharacterData
Data structure that represents a character setup
Inherited Members
Namespace: UnityEditor .U2D.Animation
Assembly: Unity.2D.Animation.Editor.dll
Syntax
[Serializable]
[MovedFrom("UnityEditor.U2D.Experimental.Animation")]
public struct CharacterData
Fields
boneReadOnly
Bones are readonly
Declaration
[Obsolete("boneReadOnly is no longer part of CharacterData. To check if character has Main Skeleton assigned to it, please use IMainSkeletonDataProvider instead.")]
public bool boneReadOnly
Field Value
Type | Description |
---|---|
bool |
bones
SpriteBones influencing the Character
Declaration
public SpriteBone[] bones
Field Value
Type | Description |
---|---|
Sprite |
characterGroups
Character grouping information
Declaration
public CharacterGroup[] characterGroups
Field Value
Type | Description |
---|---|
Character |
dimension
The dimension of the character required
Declaration
public Vector2Int dimension
Field Value
Type | Description |
---|---|
Vector2Int |
parts
Parts of the character
Declaration
public CharacterPart[] parts
Field Value
Type | Description |
---|---|
Character |
pivot
Character pivot. The value is a normalized value between (0,0) and (1,1) where (1,1) represents the value in CharacterData.dimension
Declaration
public Vector2 pivot
Field Value
Type | Description |
---|---|
Vector2 |