Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 5 Game Development with C++ Scripting

You're reading from   Unreal Engine 5 Game Development with C++ Scripting Become a professional game developer and create fully functional, high-quality games

Arrow left icon
Product type Paperback
Published in Aug 2023
Publisher Packt
ISBN-13 9781804613931
Length 384 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
ZHENYU GEORGE LI ZHENYU GEORGE LI
Author Profile Icon ZHENYU GEORGE LI
ZHENYU GEORGE LI
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1 – Getting Started with Unreal C++ Scripting
2. Chapter 1: Creating Your First Unreal C++ Game FREE CHAPTER 3. Chapter 2: Editing C++ Code in Visual Studio 4. Chapter 3: Learning C++ and Object-Oriented Programming 5. Chapter 4: Investigating the Shooter Game’s Generated Project and C++ Code 6. Part 2 – C++ Scripting for Unreal Engine
7. Chapter 5: Learning How to Use UE Gameplay Framework Base Classes 8. Chapter 6: Creating Game Actors 9. Chapter 7: Controlling Characters 10. Chapter 8: Handling Collisions 11. Chapter 9: Improving C++ Code Quality 12. Part 3: Making a Complete Multiplayer Game
13. Chapter 10: Making Pangaea a Network Multiplayer Game 14. Chapter 11: Controlling the Game Flow 15. Chapter 12: Polishing and Packaging the Game 16. Index 17. Other Books You May Enjoy

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The AProjectile class can be inherited as child classes for creating various fireable objects, such as AFireBall, AMissile, ABomb, and so on."

A block of code is set as follows:

#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "DefenseTower.generated.h

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

void APangaeaCharacter::BeginPlay()
{
…
_AnimInstance = Cast<UPangaeaAnimInstance>(
GetMesh()->GetAnimInstance());
…
}

Any command-line input or output is written as follows:

$ mkdir css
$ cd css

Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "In the Unreal Project Browser window, choose the GAMES tab on the left side. Then select the First Person template."

Tips or important notes

Appear like this.

Additionally, the C++ sample code provided in this book adheres primarily to Unreal Engine’s coding standard, ensuring consistency and minimizing confusion for readers. For detailed information, you can visit the official Code Standard website here: https://docs.unrealengine.com/5.0/en-US/epic-cplusplus-coding-standard-for-unreal-engine/.

Exceptions may occur when using compact expressions that are clear and easily understood, allowing the text to fit within the constraints of the page printing layout without compromising reader comprehension. For example, the following line of code follows the code standard by explicitly declaring the type of the assigned GameInst variable:

UPlayerAvatarAnimationInstance* GameInst = Cast   <UPlayerAvatarAnimationInstance>(GetMesh()->GetAnimInstance())

The following modified version is used instead:

auto GameInst = Cast<UPlayerAvatarAnimationInstance>(
  GetMesh()->GetAnimInstance())
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
Banner background image