I made a new C++ class type who inherits from the ACharacter class, I would like to delete the default Components in this class, and so I did the following in the .CPP file in the constructor
GetMesh()->DestroyComponent();
GetMesh()->SetActive(false);
GetCharacterMovement()->DestroyComponent();
GetCharacterMovement()->SetActive(false);
GetCapsuleComponent()->DestroyComponent();
GetCapsuleComponent()->SetActive(false);
GetArrowComponent()->DestroyComponent();
GetArrowComponent()->SetActive(false);
I compile and I open my blueprint class to see if the changes are made, and indeed it works, all the component are gone inside the blueprint.
but the problem is that if i start to add my C++ components, capsule, sk_Component, CharacterMovementComponent…
and i try to bind some input, those don’t seem to work, and my character doesn’t move