Widget Blueprint - Listing the cameras according to the level where the character is ?

Hello. I’m new to Unreal Engine 5.

I am trying to create a Blueprint Actor that uses UIs. Everything works on my little prototype. I manage to change the camera view from the character to the BP and vice versa.

My problem is that I use the Level Blueprint to designate the destination camera when I press the Tab key.

Is it possible to list the cameras according to the level where the character is to allow me to set the script on the character’s PB directly, to detect where the character is and when I press Tab to switch to the camera of the current level ?

Or is there a better way ? If so, how ?

Camera - Unreal Editor

You could GetAllActorsOfClass on the cameras, put them in an array and then put that in a drop down

( tutorial is for screen res, but it’s the same idea ).

1 Like