Interface ISpriteBoneDataProvider
Data Provider interface that deals with Sprite Bone data.
Namespace: UnityEditor.U2D.Sprites
Assembly: Unity.2D.Sprite.Editor.dll
Syntax
public interface ISpriteBoneDataProvider
Methods
GetBones(GUID)
Returns the list of SpriteBone for the corresponding Sprite ID.
Declaration
List<SpriteBone> GetBones(GUID guid)
Parameters
| Type | Name | Description |
|---|---|---|
| GUID | guid | Sprite ID. |
Returns
| Type | Description |
|---|---|
| List<SpriteBone> | The list of SpriteBone associated with the Sprite |
SetBones(GUID, List<SpriteBone>)
Sets a new set of SpriteBone for the corresponding Sprite ID.
Declaration
void SetBones(GUID guid, List<SpriteBone> bones)
Parameters
| Type | Name | Description |
|---|---|---|
| GUID | guid | Sprite ID. |
| List<SpriteBone> | bones | List of SpriteBone to associate with the Sprite. |