How do I get UCameraComponent from ACharacter/APlayerController?

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:

282779-1.png

and if you’d like to access it from any custom character you can do this:

282780-2.png

Thanks, it works