Using Alembic with Unity Animation | Alembic | 2.0.1-preview.1
docs.unity3d.com
    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. On import, Unity automatically generates an Animation clip containing Animation events for each frame in the Alembic file.

    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