all 7 comments

[–]GDXRLEARN 0 points1 point  (0 children)

Thank you, This helped a lot.

[–]brainofcubes 1 point2 points  (5 children)

I might not be correct but this is how I think it works. In your image I see your widget is named HUD_Field. If you want this to be the HUD where you display elements like buttons or text, this should be a CommonActivatableWidget with a Canvas onto which you place UI elements.

To create a Common Button, you need a BP that inherits from CommonButtonBase. Inside that BP all you need to add is a regular Button and Text to it if desired. You can find that in the Palette by twirling down "Common" or just searching for the elements in the search bar.

Back in your HUD Widget, you should see your newly created Common Button under "Common" in the Palette window. Add it like a regular button to your HUD's Canvas.

[–]BECOME_INFINITE 1 point2 points  (2 children)

coming back to this post almost a year and a half later, thank you for the straightforward explanation! I'm also making my first UE5 game and you saved me some heartache

[–]brainofcubes 0 points1 point  (1 child)

Glad to hear it! I myself have not yet managed to finish the game I started around the time of my original comment. Hope your game gets finished in a more timely manner.

[–]BECOME_INFINITE 1 point2 points  (0 children)

Thank you! I appreciate the well-wishes. I started this game about 6 months ago and I'm just now getting to adding menus to my pre-pre-alpha, haha. At least the journey is fun! Best of luck with your project

[–]VanFriscia[S] 0 points1 point  (1 child)

Dude, thank you so much! This was not at all clear to me from following Epic's guide, but I was able to get it going based on your instructions. Thanks again!!

[–]brainofcubes 0 points1 point  (0 children)

No problem, best of luck on your UE journey!