Convai Plugin 3.3.4 to 4.0.0
This guide explains how to migrate a Unity project from the old Convai SDK to the latest Convai SDK.
Important: Back Up Your Project
Before you begin, create a full backup of your Unity project to avoid accidental data loss.
Open your Unity project.
In the Project window, go to Assets.
Assets
Locate the Convai folder from the old SDK.
Convai
Delete the entire folder.
After removal, Unity may show compile errors until all references are migrated.
Install the newest SDK using one of the following:
Open Unity Asset Store.
Search for Convai SDK.
Convai SDK
Download and import the latest package.
Open Plugin Manager.
Install the latest Convai plugin.
In the Unity top menu, go to Convai → Account.
Open Convai in your browser and sign in.
Locate your API Key in the dashboard/profile settings.
Copy the API key.
Paste the key into the API Key field.
Click Update API Key.
Expected result: Account details and usage information refresh successfully.
Update these key objects in your scene:
Remove ConvaiDefaults from the scene.
ConvaiDefaults
Add ConvaiDefaults From "Convai SDK For Unity/Prefabs/Setup"
You can add it by either:
Drag the ConvaiDefaults prefab from the Prefabs/Setup folder into the scene.
Searching for ConvaiDefaults in the Project window and adding it manually.
Select each NPC character object.
Remove missing/legacy Convai components (if any).
Add the Convai Character component.
Convai Character
Audio setup
After adding ConvaiCharacter, use the setup button shown in the inspector.
ConvaiCharacter
This will automatically add/configure an Audio Source component.
Audio Source
If your character is humanoid and uses facial lip movement:
Select the character object.
Add the Convai Lip Sync component.
Convai Lip Sync
Configure visemes/blendshapes according to your avatar setup.
You can explore more about adding Lip Sync Herearrow-up-right
Last updated 5 days ago
Was this helpful?