Book Image

Unreal Engine 4 Game Development Essentials

By : Satheesh PV, Satheesh P.V
Book Image

Unreal Engine 4 Game Development Essentials

By: Satheesh PV, Satheesh P.V

Overview of this book

Unreal Engine 4 is a complete suite of game development tools that gives you power to develop your game and seamlessly deploy it to iOS and Android devices. It can be used for the development of simple 2D games or even stunning high-end visuals. Unreal Engine features a high degree of portability and is a tool used by many game developers today. This book will introduce you to the most popular game development tool called Unreal Engine 4 with hands-on instructions for building stunning video games. You will begin by creating a new project or prototype by learning the essentials of Unreal Engine by getting familiar with the UI and Content Browser. Next, we'll import a sample asset from Autodesk 3ds max and learn more about Material Editor. After that we will learn more about Post Process. From there we will continue to learn more about Blueprints, Lights, UMG, C++ and more.
Table of Contents (19 chapters)
Unreal Engine 4 Game Development Essentials
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Preface
Index

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 for self and select Get a reference to self. Connect this node to the My Character pin.

  • Again, drag a wire from the Return Value of the Create Widget node and search for Add to Viewport.

  • Connect the output execution pin of the Set My Character node to...