Sprite Resolver component in Unity
The Sprite Resolver component pulls information from the Sprite Library Asset assigned to the Sprite Library component at the root of the actor Prefab, and displays the Sprites available for selection. This component is part of the Sprite Swap setup and workflow, where attaching the Sprite Resolver component to a GameObject that's part of an actor Prefab allows you to change the Sprite rendered by that GameObject's Sprite Renderer component.
Property settings
The component contains two properties - Category and Label - and the Visual variant selector interface which displays thumbnails of the Sprites within the Sprite Library Asset.
Inspector window properties of Sprite Resolver component.
Property | Function |
---|---|
Category | Select the Category that contains the Sprite you want to use for this GameObject. |
Label | Select the Label name of the Sprite you want to use for this GameObject. |
Visual variant selector | Select the thumbnail of the Sprite you want to use. This selector displays all Sprites contained in the selected Category above. |