Class SpriteLibraryCategory
Represents a Sprite Library's category.
Implements
Inherited Members
Namespace: UnityEditor.U2D.Animation
Assembly: solution.dll
Syntax
[Serializable]
public class SpriteLibraryCategory : ISpriteLibraryCategory
Constructors
SpriteLibraryCategory(string, IEnumerable<SpriteLibraryLabel>)
Constructs a new category.
Declaration
public SpriteLibraryCategory(string categoryName, IEnumerable<SpriteLibraryLabel> categoryLabels)
Parameters
Type | Name | Description |
---|---|---|
string | categoryName | Category's name. |
IEnumerable<SpriteLibraryLabel> | categoryLabels | Collection of labels in a category. |
Properties
labels
List of labels in category.
Declaration
public IEnumerable<ISpriteLibraryLabel> labels { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ISpriteLibraryLabel> |
name
Category's name.
Declaration
public string name { get; }
Property Value
Type | Description |
---|---|
string |