Casting C++


How to cast to FirstPersonCharacter?

If the component is on the character, use GetOwner and cast that to any character.

ACharacter* CharacterX = Cast<ACharacter>(GetOwner());
2 Likes