Class SpriteLibraryAsset
A custom Asset that stores Sprites grouping.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.U2D.Animation
Assembly: solution.dll
Syntax
[HelpURL("https://docs.unity.cn/Packages/com.unity.2d.animation@9.0/manual/AssetUpgrader.html#upgrading-sprite-libraries")]
[MovedFrom("UnityEngine.Experimental.U2D.Animation")]
[Icon("Packages/com.unity.2d.animation/Editor/Assets/ComponentIcons/Animation.SpriteLibrary.png")]
public class SpriteLibraryAsset : ScriptableObject
Methods
| Name | Description |
|---|---|
| AddCategoryLabel(Sprite, string, string) | Add or replace and existing Sprite into the given Category and Label. |
| GetCategoryLabelNames(string) | Returns the labels' name for the given name. |
| GetCategoryNames() | Return all the Category names of the Sprite Library Asset that is associated. |
| GetCategorylabelNames(string) | (Obsolete) Returns the labels' name for the given name. |
| GetSprite(string, string) | Returns the Sprite registered in the Asset given the Category and Label value. |
| RemoveCategoryLabel(string, string, bool) | Remove a Label from a given Category. |