How to toggle between multiple camera with a UMG button?

To work with a single camera, you’d need a place to store the data for it to use.

In the Content Browser create a struct to hold your data:

image

You can add more data.


In the actor that holds the camera component:

  • create a widget and bind the button
  • create an array defining the desired camera setups:

Store the data here. Cycling stays the same.


There is a way to use presets by name but not sure if you can define your own. Probably? May be worth looking into. This type of camerawork is not my domain.

Also, the above is totally untested but could / should work. fingers crossed