I am pretty new to both UE4 and C++ so maybe my question is kinda stupid, but how do I get UCameraComponent if I have my custom AMainCharacter class inherited from ACharacter and my custom AMainPlayerController inherited from APlayerController? Actually all I need is CameraLocation and CameraTransform. So just getting CameraLocation and its FTransform fits me as well, any suggestions? Thanks in advance
Hey there,
There’s a Player Camera Manager object accessible from the base PlayerController, so if you have a child of player controller you can access it right away like this:
and if you’d like to access it from any custom character you can do this:
Thanks, it works