Frame-by-frame Animation | 2D Animation | 2.2.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Frame-by-frame Animation

    You can use Sprite Swap to quickly swap the Sprites rendered at run time, to create a frame-by-frame animation. This is useful for simple animations, such as to show a character blinking.

    The following is the recommended workflow:

    1. Place the Sprites for each animation frame in the Sprite Library Asset, and assign them all to the same Category. Give each Sprite a Label. Label names must be unique in their Category.

    2. Select your character Prefab, and bring it into the Scene.

    3. Open the Animation window, and select your character Prefab. and Select the Add Property button, and select the Sprite Resolver component’s Label property.

    4. Change the Label property at each keyframe in the Animation window in order of your Animation frames. This simulates a frame-by-frame animation style.

    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