Unreal Engine 4 Scripting with C++ Cookbook
eBook - ePub

Unreal Engine 4 Scripting with C++ Cookbook

William Sherif, Stephen Whittle

Share book
  1. 452 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Unreal Engine 4 Scripting with C++ Cookbook

William Sherif, Stephen Whittle

Book details
Book preview
Table of contents
Citations

About This Book

Get the best out of your games by scripting them using UE4

About This Book

  • A straightforward and easy-to-follow format
  • A selection of the most important tasks and problems
  • Carefully organized instructions to solve problems efficiently
  • Clear explanations of what you did
  • Solutions that can be applied to solve real-world problems

Who This Book Is For

This book is intended for game developers who understand the fundamentals of game design and C++ and would like to incorporate native code into the games they make with Unreal. They will be programmers who want to extend the engine, or implement systems and Actors that allow designers control and flexibility when building levels.

What You Will Learn

  • Build function libraries (Blueprints) containing reusable code to reduce upkeep
  • Move low-level functions from Blueprint into C++ to improve performance
  • Abstract away complex implementation details to simplify designer workflows
  • Incorporate existing libraries into your game to add extra functionality such as hardware integration
  • Implement AI tasks and behaviors in Blueprints and C++
  • Generate data to control the appearance and content of UI elements

In Detail

Unreal Engine 4 (UE4) is a complete suite of game development tools made by game developers, for game developers. With more than 100 practical recipes, this book is a guide showcasing techniques to use the power of C++ scripting while developing games with UE4. It will start with adding and editing C++ classes from within the Unreal Editor. It will delve into one of Unreal's primary strengths, the ability for designers to customize programmer-developed actors and components. It will help you understand the benefits of when and how to use C++ as the scripting tool. With a blend of task-oriented recipes, this book will provide actionable information about scripting games with UE4, and manipulating the game and the development environment using C++. Towards the end of the book, you will be empowered to become a top-notch developer with Unreal Engine 4 using C++ as the scripting language.

Style and approach

A recipe based practical guide to show you how you can leverage C++ to manipulate and change your game behavior and game design using Unreal Engine 4.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Unreal Engine 4 Scripting with C++ Cookbook an online PDF/ePUB?
Yes, you can access Unreal Engine 4 Scripting with C++ Cookbook by William Sherif, Stephen Whittle in PDF and/or ePUB format, as well as other popular books in Informatica & Programmazione di giochi. We have over one million books available in our catalogue for you to explore.

Information

Year
2016
ISBN
9781785885549

Unreal Engine 4 Scripting with C++ Cookbook


Table of Contents

Unreal Engine 4 Scripting with C++ Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. UE4 Development Tools
Introduction
Installing Visual Studio
Getting ready
How to do it...
How it works...
Creating and building your first C++ project in Visual Studio
Getting ready
How to do it...
How it works...
There's more...
Changing the code font and color in Visual Studio
Getting ready
How to do it...
How it works...
There's more...
See also
Extension ā€“ changing the color theme in Visual Studio
How to do it...
How it works...
Formatting your code (Autocomplete settings) in Visual Studio
Getting ready
How to do it...
How it works...
Shortcut keys in Visual Studio
Getting ready
How to do it...
How it works...
Extended mouse usage in Visual Studio
How to do it...
How it works...
UE4 ā€“ installation
Getting ready
How to do it...
How it works...
There's more...
UE4 ā€“ first project
How to do it...
UE4 ā€“ creating your first level
Getting ready
How to do itā€¦
UE4 ā€“ logging with UE_LOG
Getting ready
How to do it...
How it works...
UE4 ā€“ making an FString from FStrings and other variables
Getting ready
How to do itā€¦
Project management on GitHub ā€“ getting your Source Control
Getting ready
How to do it...
How it works...
Project management on GitHub ā€“ using the Issue Tracker
Getting ready
How to do it...
How it works...
See also
Project management on VisualStudio.com ā€“ managing the tasks in your project
How to do it...
How it worksā€¦
Project management on VisualStudio.com ā€“ constructing user stories and tasks
Getting ready
How to do itā€¦
How it worksā€¦
2. Creating Classes
Introduction
Making a UCLASS ā€“ deriving from UObject
Getting ready
How to do it...
How it worksā€¦
There's moreā€¦
See also
Creating a user-editable UPROPERTY
Getting ready
How to do it...
How it worksā€¦
See also
Accessing a UPROPERTY from Blueprints
How to do it...
How it worksā€¦
Specifying a UCLASS as the type of a UPROPERTY
Getting ready
How to do it...
How it worksā€¦
TSubclassOf
FStringClassReference
Creating a Blueprint from your custom UCLASS
Getting ready
How to do itā€¦
How it worksā€¦
Instantiating UObject-derived classes (ConstructObject < > and NewObject < >)
Getting ready
How to do it...
How it worksā€¦
There's moreā€¦
Destroying UObject-derived classes
Getting ready
How to do it...
How it worksā€¦
Creating a USTRUCT
Getting ready
How to do it...
How it works...
There's moreā€¦
Creating a UENUM( )
How to do it...
How it worksā€¦
Creating a UFUNCTION
How to do it...
How it worksā€¦
3. Memory Management and Smart Pointers
Introduction
Unmanaged memory ā€“ using malloc( )/free( )
How to do it...
How it worksā€¦
Unmanaged memory ā€“ using new/delete
Getting ready
How to do it...
How it worksā€¦
There's moreā€¦
Managed memory ā€“ using NewObject< > and ConstructObject< >
Getting ready
How to do it...
How it worksā€¦
There's moreā€¦
See also
Managed memory ā€“ deallocating memory
Getting ready
How to do it...
How it worksā€¦
There's moreā€¦
Managed memory ā€“ smart pointers (TSharedPtr, TWeakPtr, TAutoPtr) to track an object
Getting ready
How to do it...
How it worksā€¦
There's moreā€¦
Using TScopedPointer to track an object
Getting ready
How to do it...
How it worksā€¦
Unreal's garbage collection system and UPROPERTY( )
How to do it...
How it worksā€¦
Forcing garbage collection
Getting ready
How to do it...
Breakpoints and stepping through code
Getting ready
How to do it...
How it worksā€¦
Finding bugs and using call stacks
Getting ready
How to do it...
How it worksā€¦
Using the Profiler to identify hot spots
How to do it...
How it worksā€¦
4. Actors and Components
Introduction
Creating a custom Actor in C++
Getting ready
How to do it...
How it works...
Instantiating an Actor using SpawnActor
How to do it...
How it works...
Destroying an Actor using Destroy and a Timer
How to do it...
How it works...
Destroying an Actor after a delay using SetLifeSpan
How to do it...
How it works...
Implementing the Actor functionality by composition
Getting ready
How to do it...
How it works...
See also
Loading assets into components using FObjectFinder
Getting ready
How to do it...
How it works...
Implementing the Actor functionality by inheritance
How to do it...
How it works...
See also
Attaching components to create a hierarchy
How to do it...
How it works...
Creating a custom...

Table of contents