I am making a game with blueprints and I am want to make it switch to different cameras when I click buttons on my widgets. When the game starts a widget appears on the screen, I click a button on it, it is replaced with another widget then when i click a button on the second widget It should be changing the view target to the next camera but I don’t know how to make it work. I can’t create a reference to the camera actor in the widget event graph. So this is what I have in the widget blueprint event graph:
It replaces the second widget with another one but I wanna make it change to the next camera as well.
I tried copying the OnClicked(Button_1060), which is the button on the second widget to change
the widget to the third one and switch to the second camera, to the Level Blueprint like this: . I tried putting the previous camera instead of ‘Get Player Controller’ but it won’t let me to connect it to ‘Target’. So when I run the game and click the button it changes the widgets but the camera stands the same. Please tell me what am I doing wrong! I also tried to copy this: from the Level Blueprint to the Widget Event Graph and I got this: I’ve been using unreal engine for a few weeks.