Download

How can I check the current active camera?

Hi all,

I’m currently wondering in the world of the unreal editor and i am loving this blueprint scripting system but I have a camera related question.

Currently i’m creating a function that toggles between 2 cameras but I need to know how to check the current active camera that is looking at the level. Is this possible?

Kind regards,

Joris

I have found the solution and like to share this with you guys. :smiley:

The solution was to use the function “Get view Target” and then compare this target with any camera actor in your level. When true you’ll know that this camera is your current active camera.

b4b7cefef35502de7483a920cc8c6d4f647ee5f6.jpeg

Thanks for this. I was trying to save a pawn’s default camera so I could temporarily switch to another camera and then restore the original one. This helped me.