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

Unreal Engine 4 Scripting with C++ Cookbook

William Sherif, Stephen Whittle

Compartir libro
  1. 452 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Unreal Engine 4 Scripting with C++ Cookbook

William Sherif, Stephen Whittle

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Unreal Engine 4 Scripting with C++ Cookbook un PDF/ePUB en línea?
Sí, puedes acceder a Unreal Engine 4 Scripting with C++ Cookbook de William Sherif, Stephen Whittle en formato PDF o ePUB, así como a otros libros populares de Informatica y Programmazione di giochi. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2016
ISBN
9781785885549
Edición
1
Categoría
Informatica

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...

Índice