docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Additional resources

    • Setting up for Sprite Swap
    • Sprite Library Asset in Unity
    • Sprite Library component in Unity
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023