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 Virtual Reality Projects

You're reading from   Unreal Engine 4 Virtual Reality Projects Build immersive, real-world VR applications using UE4, C++, and Unreal Blueprints

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781789132878
Length 632 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Robert Ruud Robert Ruud
Author Profile Icon Robert Ruud
Robert Ruud
Kevin Mack Kevin Mack
Author Profile Icon Kevin Mack
Kevin Mack
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Title Page
About Packt
Contributors
Preface
1. Thinking in VR 2. Setting Up Your Development Environment FREE CHAPTER 3. Hello World - Your First VR Project 4. Getting Around the Virtual World 5. Interacting with the Virtual World - Part I 6. Interacting with the Virtual World - Part II 7. Creating User Interfaces in VR 8. Building the World and Optimizing for VR 9. Displaying Media in VR 10. Creating a Multiplayer Experience in VR 11. Taking VR Further - Extending Unreal Engine 12. Where to Go from Here 1. Useful Mind Hacks 2. Research and Further Reading 3. Other Books You May Enjoy Index

Adding a UI indicator to the companion pawn


Now that our character is moving through the world, we're going to give it another behavior state and allow the player to instruct it to wait.

Before we create this new state, however, we're first going to create a simple UI element to indicate the companion character's current state. We'll build it as a placeholder first, since we haven't yet created its new state, and then, once we have, we'll update it to reflect the real underlying data.

Creating a UI widget using UMG

Unreal provides a powerful tool for constructing UI elements. UMG allows developers to lay out UI elements on a visual layout tool, and to tie Blueprint behaviors directly to the objects in the layout. We call UI elements widgets. Let's learn how to create them:

  1. In your project's Content directory, right-click to create a new asset. Select UI | Widget Blueprint:
  1. Name it WBP_CompanionIndicator and open it up.

 

You'll be presented with the UMG UI Designer.

Note

Unreal offers two toolsets...

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