Version 3 Migration Guide
This guide is for projects migrating Ultimate Character Controller version 2 characters, cameras, items, scenes, or custom code to version 3. It is not needed for a new version 3 installation or a version 3 point update. Version 3 requires Unity 2021.3.0 or later.
Version 3 cannot be imported over version 2. Work on a recoverable copy of the project and complete the steps in order.
Prepare the project
- Create a full project backup or source-control checkpoint and confirm that you can restore it.
- Check
Assets/Opsivefor project-owned scripts, presets, materials, animations, or other unique files. Move copies of those files outsideAssets/Opsivebefore removing the folder. - Record the version 2 Motor Acceleration and Motor Damping values for each character, plus the behavior of every item action that must be rebuilt.
- Note which scenes and prefabs contain version 2 characters, cameras, and items so each one can be verified after migration.
Do not continue until the backup contains both the project and any unique content that was stored under Assets/Opsive.
Choose the relevant migration path
- Characters and cameras using standard version 2 components: The Migration Manager can replace the legacy components after the project compiles.
- Custom abilities or impact listeners: Update the changed APIs before opening the Migration Manager.
- Items or custom item-action subclasses: Expect manual work. Version 3’s modular item system cannot reproduce the old action behavior automatically.
- Prefab-based characters: The Migration Manager accepts a scene object, not a prefab asset. Migrate a scene instance; character migration may unpack that instance, so create a new version 3 prefab deliberately after verification.
- Projects with add-ons or integrations: Migrate and verify the core controller first, then install versions of each add-on or integration that support your installed version 3 package.
Migration order
- Remove the version 2
Assets/Opsivefolder. - Remove the version 2 character-controller scripting defines.
- Import and install version 3.
- Resolve all compiler errors in project code.
- Migrate each character, camera, and item scene object.
- Rebuild modular item behavior and retune character movement.
- Update the scene managers and remove only the expected missing scripts.
- Verify the migrated scene in Play Mode before replacing the version 2 project or prefabs.
Remove version 2
After preserving any unique content, remove the version 2 Assets/Opsive folder. The package has too many file changes for version 3 to be imported on top of it.
In Edit > Project Settings > Player, open Other Settings and remove these values from Scripting Define Symbols for every build target that contains them:
FIRST_PERSON_CONTROLLER
THIRD_PERSON_CONTROLLER
FIRST_PERSON_MELEE
FIRST_PERSON_SHOOTER
THIRD_PERSON_MELEE
THIRD_PERSON_SHOOTER
ULTIMATE_CHARACTER_CONTROLLER_MULTIPLAYER
ULTIMATE_CHARACTER_CONTROLLER_VR

Version 3 adds the appropriate controller defines after installation. Leaving the old symbols in place can make removed version 2 code paths compile before the new package is ready.
Install version 3
Import version 3 from the same source used for the purchased package and allow Unity to finish compiling. Follow the current Importing requirements when the package or sample needs additional Unity packages.
Some version 3 distributions open the Version 3 Installer after import. When that window appears, satisfy its listed requirements and select Install. Older distributions also expose it at Tools > Opsive > Ultimate Character Controller > Installer. If the installed package does not include that menu, continue when compilation finishes and Tools > Opsive > Ultimate Character Controller > Main Manager is available.

Do not migrate scene objects while the Console still contains compiler errors.
Update custom code
Resolve project-code errors before using the Migration Manager. The following version 2 extension points require the most common changes.
Ability movement and rotation
Version 2 abilities could move the character with Motor Throttle, Move Direction, or Ability Motor. In version 3, set DesiredMovement instead:
m_CharacterLocomotion.DesiredMovement = m_Rigidbody.transform.TransformDirection(moveDirection);
Set DesiredRotation when an ability controls rotation:
m_CharacterLocomotion.DesiredRotation = targetRotation * Quaternion.Inverse(m_Rigidbody.rotation);
These examples use the Rigidbody position and rotation rather than the Transform values because version 3 moves the character with Rigidbody.MovePosition and Rigidbody.MoveRotation. Transform values may not be current when Physics.autoSyncTransforms is disabled.
Ability animator updates
Ability.UpdateAnimator is deprecated in version 3. Move custom animator-parameter changes into Ability.Update.
Modular items
Version 3 replaces the version 2 Shootable Weapon, Melee Weapon, and other item-action implementations with modular item actions. A migrated item receives equivalent version 3 components where possible, but its previous action behavior must be recreated with Item Actions and Action Modules and Groups.
OnObjectImpact listeners
OnObjectImpact now sends one ImpactCallbackContext instead of a separate argument for each value. A version 3 listener can register and unregister like this:
using UnityEngine;
using Opsive.Shared.Events;
using Opsive.UltimateCharacterController.Items.Actions.Impact;
public class MyObject : MonoBehaviour
{
/// <summary>
/// Initialize the default values.
/// </summary>
public void Awake()
{
EventHandler.RegisterEvent<ImpactCallbackContext>(gameObject, "OnObjectImpact", OnImpact);
}
/// <summary>
/// The object has been impacted by another object.
/// </summary>
/// <param name="ctx">The context of the impact.</param>
private void OnImpact(ImpactCallbackContext ctx)
{
Debug.Log("Event received " + name + " impacted by " + ctx.ImpactCollisionData.SourceGameObject + " on collider " + ctx.ImpactCollisionData.ImpactCollider + ".");
}
/// <summary>
/// The GameObject has been destroyed.
/// </summary>
public void OnDestroy()
{
EventHandler.UnregisterEvent<ImpactCallbackContext>(gameObject, "OnObjectImpact", OnImpact);
}
}
Migrate characters, cameras, and items
- Open a scene containing one version 2 object to migrate.
- Select Tools > Opsive > Ultimate Character Controller > Main Manager.
- Select the Migration manager.
- In Object Migration, assign the scene object to Object.
- Select Migrate Object and wait for the Console confirmation.
- Repeat for every version 2 character, camera, and item in the project.

The Migrate Object button remains disabled when Object is empty, points to a prefab asset, or does not contain a recognized version 2 character, camera, or item component. Items still require their version 2 action behavior to be rebuilt with modules after the component migration.
Retune the migrated content
The version 3 locomotion algorithm changed. Use these conversions only as starting points for a similar response:
- Multiply the version 2 Motor Acceleration value by
17.7. - Multiply the version 2 Motor Damping value by
20.
Test acceleration, stopping distance, airborne movement, and each movement type, then tune the results for the project rather than treating the converted values as final.
For every item, recreate its action modules and confirm its equip, use, impact, ammo, and unequip behavior as applicable. Custom version 2 item-action subclasses do not migrate automatically.
Update the scene
Open each migrated scene and inspect missing components before removing them. The expected version 2 leftovers are:
- One missing Kinematic Object Manager script on the Game GameObject because that manager was removed in version 3.
- Missing version 2 Aim Assist components on the camera because those camera components were removed.
Investigate any other missing script instead of assuming it is safe to delete. Then open Tools > Opsive > Ultimate Character Controller > Setup Manager, select the Scene tab, and use Add Managers as described in Quick Setup.
Save the migrated scene under a temporary name until its Play Mode checks pass.
Verify in Play Mode
- Confirm that the Console has no compiler errors and no unexpected missing-script messages.
- Confirm that each migrated character has Ultimate Character Locomotion, each migrated camera has Camera Controller, and the scene contains the required managers.
- Enter Play Mode and test movement, look input, perspective changes, jumps, abilities, animation parameters, death and respawn, and any project-specific interactions.
- Equip and use every migrated item. Confirm each manually rebuilt action and impact response rather than checking only that the item appears.
- Test add-ons and integrations only after the core character, camera, and items work.
- Create replacement version 3 prefabs from verified migrated scene objects, then repeat the Play Mode check in a clean scene.
The migration is complete only when the version 3 scene reproduces the required project behavior without relying on a missing component or a version 2 package file.
Troubleshooting
| Symptom | Check | Fix |
|---|---|---|
| Version 3 produces compiler errors immediately after import. | A version 2 scripting define or custom script may still reference a removed API. | Remove the listed version 2 defines, update the custom-code areas above, and do not run object migration until the Console compiles cleanly. |
| Migrate Object is disabled. | Object may be empty, a prefab asset, or an object without a supported legacy component. | Put the version 2 character, camera, or item in a scene and assign its root GameObject to Object. |
| A migrated item appears but no longer performs its action. | Component migration does not rebuild version 2 item-action behavior. | Recreate the behavior with Item Actions and Action Modules, then verify every use path in Play Mode. |
| Character acceleration or stopping feels different. | The version 3 locomotion algorithm uses different tuning. | Start with the conversion factors above, then tune against the project’s expected movement and stopping distance. |
| A migrated character prefab instance is unpacked. | Character migration reorganizes the model and related child objects. | Keep the original version 2 prefab in the backup and create a new version 3 prefab from the verified migrated scene object. |
| Unexpected missing scripts remain. | They may belong to project code, an add-on, or an integration rather than the removed version 2 managers. | Restore or install the compatible dependency and investigate the component before removing it. |