Is there an equivalent function to Camera.main from Unity?

If so, how can i set this camera at runtime?

For those unfamiliar with unity, Camera.main refers to the final camera instance being used to render, and can be referred to from pretty much anything.

Just attach a camera to your character.

what does this mean? I have pawns in my game but no characters. Do you mean attach a camera component to the Pawn?

In your pawn blueprint component tab add a camera.

When you start game with default game mode of UE, there’s a PlayerController will be created with the camera, and u can access through PlayerController.PlayerCameraManager.

Hi joessu,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thanks, TJ

Hey TJ,

I actually like the other guys answer better, as i think it better fits my question.