docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Create animation with Animation Generator

    Use Animation Generator to create animation from scratch with a text prompt.

    There are two methods to generate an animation:

    • Text to Motion
    • Video to Motion

    Text to Motion

    Use Text to Motion to generate an animation using a text prompt.

    1. Right-click an empty area in the Project window to open Animation Generator.

    2. Select Create > Animation > Generate Animation Clip.

    3. Select the Text to Motion tab.

    4. To choose a model, select Change.

    5. Select a model from the Select Model window.

    6. In the Prompt field, describe the animation you want to generate.

      For example, walk or jump.

    7. Use the Duration slider to specify the length of the generated animation in seconds.

    8. To specify a custom seed to generate consistent results, enable Custom Seed and enter a seed number.

      For more information on custom seed, refer to Use custom seed to generate consistent sprites.

    9. Select Generate.

      Tip

      Use the Trim tab to adjust the animation's direction, position, and looping behavior after generation. For more information, refer to Adjust the direction and loop of an animation clip.

    Video to Motion

    Use Video to Motion to replicate complex or realistic movements from a reference video. This method captures detailed motions, such as martial arts or dance routines, directly from video footage.

    1. Right-click an empty area in the Project window to open Animation Generator.

    2. Select Create > Animation > Generate Animation Clip.

    3. Select the Video to Motion tab.

    4. To choose a model, select Change.

    5. Select a model from the Select Model window.

    6. To specify a custom seed to generate consistent results, enable Custom Seed and enter a seed number.

    7. Select the browse icon to open the Select Video Clip window and select a video file from your Unity project folder.

      Tip

      Drag the video into your project folder if it’s not already imported.

      Note

      The video file must be in one of the supported Unity video formats. MP4 is the preferred format for best compatibility and performance. For more information, refer to Unity video format compatibility.

    8. Select Generate.

    Note

    To generate and assign assets directly, refer to Generate and assign assets with the Object Picker.

    Guidelines for Video to Motion

    • Only one person in the frame: Place only one person in the frame, and ensure good contrast and that their feet are clearly visible and distinguishable from the ground.

    • Full body in frame: Ensure the entire body and all the movements are visible in the video. The video starts with the person on the ground, facing the camera.

    • Stable camera: Ensure the video is continuous, without cuts or zooms. Keep the camera stable by using a tripod or resting it on a stable surface.

    Generated animation clip

    The generated animation appears in the Generations panel. Hover over the animation to play it and view details, such as the model used and prompt settings.

    The animation is saved in the Assets folder as a .anim file. For example, walk.anim.

    After generating an animation clip, you can modify or refine it with Unity's standard animation editing tools. For more information, refer to Unity animation clips.

    Tip

    Use the Trim tab to refine your animation after generation. For more information, refer to Adjust the direction and loop of an animation clip and Trim reference.

    Unityai label

    By default, newly created Unity assets don't have any labels assigned. When you generate an asset and apply that generation to it, the asset is automatically tagged with the Unityai label. This label lets you identify, search, and organize assets created with Generators.

    Inspector window showing an asset with Unityai label applied

    To locate all assets with the Unityai label, use one of the following ways:

    • Enter Unityai in Unity's Search window.
    • Right-click any asset and select Search Generated Assets.

    The search result shows a list of all assets in your project that had generation applied to them.

    Note

    The Unityai label isn't applied when the asset is first created. It's only added when you generate and assign the resulting generation to the asset.

    Additional resources

    • Apply animation to a character
    • Use custom seed to generate consistent sprites
    • Troubleshoot issues with Animation Generator
    • Unity animation clips
    • Generate and assign assets with the Object Picker
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)