Adding Your Recorded Animations to AI Avatars Inside Unity
Learn how to import animations recorded in VR and apply them to your AI avatars in Unity.
Overview
Bring your Convai avatars to life inside Unity by integrating animations recorded via the Convai XR Animation Capture App. This guide walks you through importing those animations and attaching them to AI-powered characters in your Unity project.
How to Add Recorded Animations to AI Avatars in Unity
Step 1: Set Up Unity & Convai
Before importing animations, ensure your Unity project is correctly set up with Convai:
Install the Convai Unity SDK.
Retrieve your API key from the Convai Playground.
Add the API key to your project settings.
Need help setting up the SDK? Check out our Unity SDK Documentation or follow the video walkthrough above.
Step 2: Import the Animation
Go to the Convai Dashboard and navigate to the Server Animations tab.
Locate the animations you recorded in VR.
Click Import and select a location within your Unity project's
Assets/
directory.
The files must be placed inside the Unity project folder for them to be detected and used properly.
Step 3: Apply the Animation to a Character
In Unity, drag your AI character model into the scene hierarchy.
Adjust the character’s position if needed.
Open or create an Animator Controller.
Drag the imported animation clip into the Animator Controller.
If the animation should repeat, enable Loop Time in the Animation settings.
Step 4: Test the Scene
Run your Unity scene.
Start a conversation with the avatar or trigger the assigned action.
Watch your AI avatar perform the recorded animation in real-time!
Done! ✅
You’ve now successfully connected a custom VR-recorded animation to an AI-powered avatar in Unity. Repeat the process to add more animations and create rich, expressive characters in your simulations or games. 😎
Last updated
Was this helpful?