docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Using Alembic with Unity Animation

    You can control the playback of Alembic using Unity's Animation System bound to the GameObject that contains the Alembic Stream Player component.

    1. Select the GameObject with the Alembic Stream Player component and open the Animation window.

    2. Create an Animator component and an Animation clip if you don't already have them.

    3. Save keyframes for the Time property on the Alembic Stream Player component.

      Saving keyframes on the property label Current Time connects the Animation clip to the Time property on the Alembic Stream Player

    4. For example, if the Alembic file lasts 16 seconds, set a key at the beginning of the clip where the Time property is set to 0, and another key at the end of the clip where the Time property is set to 16.

    5. To play back the animation, use the Animation view Play controls in the Animation window or click the Game Play button from the main Unity toolbar.

    Now you have a Unity Animation clip containing the animation from the Alembic file.

    If you want to use the clip in the GameObject's animation state machine, add it to the Animation Controller just like any other Animation clip.

    In This Article
    Back to top
    Copyright © 2024 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)