O'Reilly logo

Unreal Engine 4 Game Development Essentials by Satheesh PV

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Assigning our HUD to Character

Now that we have finished setting up the HUD, it is time we assign it to the character. Let's close Widget Blueprint for now and open ThirdPersonCharacter Blueprint.

Inside our Character Blueprint, open the Event Graph and:

  • Right-click and, from the resulting context menu, search for Event BeginPlay and select it.
  • Drag a wire from the execution pin of Event BeginPlay and release the mouse button. From the context menu, search for Create Widget and select it.
  • In the Create Widget node, select MyUMG_HUD in the class pin.
  • From the Return Value of the Create Widget node, drag a new wire and release the mouse button. From the context menu, search for Set My Character and select it.
  • Right-click on the graph editor and search ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required