Any way to override default CharacterMovement class?

Hello,

I would like to know if there is any way that the CharacterMovementComponent in the Character class can be overridden? So that I can add my own variables to a different class that I will be deriving from “CharacterMovementComponent” and set that class as the default in my character.

Any help will be appreciated,

Thanks!

You can do it in your character constructor. Something like:

AMyAwesomeCharacter::AMyAwesomeCharacter(const FObjectInitializer& OI)
: Super(OI.SetDefaultSubobjectClass<UMyCustomCharacterMovementComponent>(ACharacter::CharacterMovementComponentName)){}