Is there an API for setting up a UCC Locomotion component?

Imp079

New member
I am in the process of updating a project from Unity 5.6 to 2020LTS, and have ~40 preexisting enemy character prefabs to update to the latest version of the Ultimate Character Controller. I'm trying to automate as much of the process as possible via editor scripts. I can add the components via script but haven't found a way to, say, add a movement type to an UltimateCharacterLocomotion component via edtor script. I had a look at the inspector editor script for that component but it seems to rely on a bunch of private functions to accomplish things like that.
 
Take a look at the CharacterManager, this is what creates the character and is a good starting point for creating your own editor scripts.
 
Awesome, thank you! Looks like it uses functions from the CharacterBuilder class, found in the Opsive.UltimateCharacterController.Utility.Builders namespace.
 
Top