Moving the camera when a button is clicked on screen?

So I’m trying to make a character select screen. I feel like I’m getting fairly close to what we’re trying to achieve with this, but I still can’t seem to connect the blueprints together.

Here are some screenshots of what I have so far.

Third Person Character Blueprint (which functions as our camera): https://i.imgur.com/fbRLftm.jpg

Main Menu HUD: https://i.imgur.com/LTWrqqd.png

Widget Blueprint (for clicking the button): https://i.imgur.com/5azn1IB.jpg

I’m VERY new to blueprint stuff, so I won’t know a lot of terminology…but I could really use some help getting this to work right. This is as far as I got using various tutorials and piecing things together online, but I can’t figure out what I’m supposed to put into the “object” section, and if that’ll even work in the end.

You’re pretty close. Your missing object is the main menu widget (obviously :slight_smile: you’ve created in the MainMenu_HUD blueprint. There you’ll need to add one more element to make the whole thing work:

  • right click on the Return Value pin on the Create Widget node and Promote To Variable - this will create a reference in the HUD you can access later on
  • in Third Person Character Blueprint, Get Player ControllerGet HUDCast To (MainMenu_HUD) → Get Reference of your widget

You no longer need to cast the widget reference at this point, since you created the correct variable type in the HUD already by promoting the return value.

Hope it helps.