Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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 Game Development Cookbook

You're reading from   Unreal Engine Game Development Cookbook Over 40 recipes to accelerate the process of learning game design and solving development problems using Unreal Engine

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784398163
Length 326 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
John P. Doran John P. Doran
Author Profile Icon John P. Doran
John P. Doran
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting Acquainted with the UE4 Interface 2. Level Design – Building Out Levels or Greyboxing FREE CHAPTER 3. Creating Quality Interior Environments 4. Building the Great Outdoors – Exterior Environments 5. Lights, Camera, Action – Cinematics 6. Lighting and Shadows 7. Art Pipeline – Working with Materials 8. Blueprint Scripting – Level Effects 9. C++ Programming – Gameplay 10. User Interface 11. Publishing and Deployment Index

Displaying text during runtime


While you're creating your project, one of the things that can be valuable to know is how to give yourself information while the game is going on. This way, you can check the order of the things being called and/or what values data have.

Since it was first written 40 years ago, it has been a tradition for beginning programmers to write a function that displays "Hello World!" on the screen. Let's do that now!

Getting ready

Before we start working on this we need to have a project created and set up. So, follow the previous recipe all the way to completion.

How to do it…

In this recipe, we will extend and customize the built-in GameMode class to do just that:

  1. With Visual Studio opened, go over to the Solution Explorer tab and open up the Games/Cookbook_Chapter9/Source/Cookbook_Chapter9 folder, and you should see a number of files. Double-click on the Cookbook_Chapter9GameMode.h file to open it.

    This file contains the information for a class called ACookbook_Chapter9GameMode...

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 $19.99/month. Cancel anytime