Set Camera -> Pawn's Camera Component

Hello,

If I have a pawn with a camera component, then the PlayerController makes this pawn using ‘spawn actor from class’, how do I set the camera the player is using to this pawn’s camera component?

Thank you.

camcomp.jpg

I found the answer after reading back through the documentation here: Actors | Unreal Engine Documentation - seems like every time I do things that didn’t make sense or matter before do now.

Rather than accessing the component specifically I set the pawn itself as the camera and it uses the camera component.