Use the camera attached to a pawn

There is no such thing as the level uses a camera. Levels have nothing to do with it. Instead, there is a class called the Camera Manager:

image

Even if you place no cameras anywhere, the engine will create a default camera manager whose view we will be using.


When you possess a Pawn, the camera manager looks up the first active camera component it can find in that pawn and starts using it as its view. Non-pawn actors cannot be possessed, but we can switch to their point of view:

image

Again, the PC’s camera manager will look up the first active available camera component in New View Target and use it as its view. If no suitable cameras are found, the point of view defaults to the world transform of that actor.


The camera manager works closely with the player controller and knows which actor’s point of view we’re using:

image

You can use it for gameplay purposes. Actors also get a notify when we start using their point of view:

image


And you’re not limited to the default camera manager, you can override it, which gives you a couple extra features:

image

Most importantly:

You get to completely override any camera work and provide your own solution here.

4 Likes