I'm accessing my FollowCamera https://imgur.com/a/vbFagxg from my BluePrintCharacter class in my C++ code, with this following line :
FollowCamera = GetOwner()->FindComponentByClass<UCameraComponent>(); FVector WorldLocationV = FollowCamera->GetWorldLocation();
But when I run my game, I get this error : GetWorldLocation is not a member of UCameraComponent
Why is this, and how can I get GetWorldLocation from FollowCamera in C++?
In BluePrint this seems to work fine : http://i.imgur.com/8m9TWUW.png