Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 4 Game Development Quick Start Guide

You're reading from   Unreal Engine 4 Game Development Quick Start Guide Programming professional 3D games with Unreal Engine 4

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781789950687
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Rachel Cordone Rachel Cordone
Author Profile Icon Rachel Cordone
Rachel Cordone
Arrow right icon
View More author details
Toc

Adding widgets to other widgets

Sometimes, our menus and HUDs will become complex. Settings menus, player inventories, and map screens can all have complex designs and layouts. When our widgets reach this point, the Designer window can become overly complicated, and the Blueprint window even more so as it tries to keep things organized.

Fortunately, not everything that our widgets use needs to be pieced together from individual buttons, images, and text. If we need to, we can make a smaller widget (such as a chat box, for instance) and add that entire widget to another one (such as our HUD, by pressing T to bring up the chat box).

Let's take a look at how to do this in Awesome Game. For this example, we're going to set up a list of our pickup spheres and display them on the HUD.

First, let's change how the Pickup class works.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime