How to show what the camera is viewing?

I put a camera actor on my level. When I press play, I want to be able to see what the camera is seeing. However, when I press play, I see the middle of the level.


What I see when I press play is the blue sky. What the camera sees, and what I want to see is the grass.

Check Set View Target with Blend

It won’t work if you just put it into the level. When BeginPlay is fired you can get your PlayerController and call SetViewTarget. Do something like this on your camera actor

Further reading: https://docs.unrealengine.com/5.0/en-US/using-cameras-in-unreal-engine/

I did this but nothing changed. I don’t if this is relevant but I destroy my character once the level starts, because he not supposed to be in the main menu. Maybe some configuration related to it is making the default view the center of the level?

It dose seem to affect the viewport if you detroy it.

You can make a new controller class derived from PlayerController and override the value of Auto Manage Active Camera Target ( uncheck it ). Then change your level’s PlayerController class to the new one ( in World Settings window ).

It should work.

I guess you can also make your camera a pawn. So the default PlayerController can possess it directly. Then you won’t need to bother doing stuffs.

Hey there @Pinteco! Are you just trying to have the camera looking at a static scene? Or are you creating a game with a character? Just getting a good grip on what you want to make will determine our next steps.