Use Pawn Camera

Hi, I’m new to ue4. So I would like to know how I can use a pawn as player controller?
I know what are GameModes, I have made my pawn to move around, but It has a camera built in, how I can use it?

I would like it built in code. Because it will be in constructor

What do you like exactly? Your pawn is inherited from AActor and that is right. A Player Controller is another class. And whats about the camera? I don’t get your Problem.

If your pawn has a camera component, by default that camera will be automatically used when you possess that pawn with your player controller.