Class SpriteLibraryLabel
Represents a Sprite Library's label.
Implements
Inherited Members
Namespace: UnityEditor.U2D.Animation
Assembly: Unity.2D.Animation.Editor.dll
Syntax
[Serializable]
public class SpriteLibraryLabel : ISpriteLibraryLabel
Constructors
SpriteLibraryLabel(string, Sprite)
Constructs a new label.
Declaration
public SpriteLibraryLabel(string labelName, Sprite labelSprite)
Parameters
| Type | Name | Description |
|---|---|---|
| string | labelName | Label's name. |
| Sprite | labelSprite | Label's Sprite. |
Properties
name
Label's name.
Declaration
public string name { get; }
Property Value
| Type | Description |
|---|---|
| string |
sprite
Sprite associated with the label.
Declaration
public Sprite sprite { get; }
Property Value
| Type | Description |
|---|---|
| Sprite |