CharacterBuilder Error with new MovementType

camelmed

New member
I created a new MovementType (that worked well in 2.2.0). And now with 2.2.1, if i create a new Character I get this Error:

ArgumentNullException: Value cannot be null.
Parameter name: type
at Assets/Opsive/UltimateCharacterController/Scripts/Utility/Builders/CharacterBuilder.cs:329

I added some debug and it looks like the "System.Type.GetType" wont find my MovementType?

Debug.Log(movementType);
Output: "MyMovementType"
var type = System.Type.GetType(movementType);
Debug.Log(type);
Output: "null"

Unity Version: 2019.3

How can i fix that?

EDIT:

The Error was not related to this Version, i moved my Scripts into a new folder for better overview of what i have changed. When i move the "MyMomentType.cs" back into the folder with the other MovementTypes it works. With the MyViewType in another Folder i have no problems.
 
Last edited:
What namespace is your Movement Type in? I'm not completely following what you did to get it to work so if you can give more details I'll have a better idea of what is going on.
 
My MovemenType was just a 1:1 copy of the RPG MovementType, same Namespace.
If my new MovementType is in the same folder as the others "ThirdPersonController/Character/MovementTypes" all works well, but if i move it to another folder i get this Error.
 
Top