Class SpriteResolver
Updates a SpriteRenderer's Sprite reference on the Category and Label value it is set.
Inherited Members
Namespace: UnityEngine .U2D.Animation
Assembly: solution.dll
Syntax
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("2D Animation/Sprite Resolver")]
[Icon("Packages/com.unity.2d.animation/Editor/Assets/ComponentIcons/Animation.SpriteResolver.png")]
[DefaultExecutionOrder(-2)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.animation@9.0/manual/SL-Resolver.html")]
[MovedFrom("UnityEngine.Experimental.U2D.Animation")]
public class SpriteResolver : MonoBehaviour, ISerializationCallbackReceiver, IPreviewable
Properties
Name | Description |
---|---|
sprite |
Property to get the SpriteLibrary the SpriteResolver is resolving from. |
Methods
Name | Description |
---|---|
Get |
Get the Category set for the SpriteResolver. |
Get |
Get the Label set for the SpriteResolver. |
On |
Empty method. Implemented for the IPreviewable interface. |
Resolve |
Set the Sprite in SpriteResolver to the SpriteRenderer component that is in the same GameObject. |
Set |
Set the Category and label to use. |