Blueprints Visual Scripting for Unreal Engine
eBook - ePub

Blueprints Visual Scripting for Unreal Engine

The faster way to build games using UE4 Blueprints, 2nd Edition

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

Blueprints Visual Scripting for Unreal Engine

The faster way to build games using UE4 Blueprints, 2nd Edition

About this book

Publisher's note: This edition from 2019 is based on Unreal Engine 4 and does not make use of the most recent Unreal Engine features. A new third edition, updated for Unreal Engine 5 blueprints including new topics, such as implementing procedural generation and creating a product configurator, has now been published.

Key Features

  • Design a fully functional game in UE4 without writing a single line of code
  • Implement visual scripting to develop gameplay mechanics, UI, visual effects, VR and artificial intelligence
  • Deploy your game on multiple platforms and share it with the world

Book Description

Blueprints is the visual scripting system in Unreal Engine that enables programmers to create baseline systems and can be extended by designers.

This book helps you explore all the features of the Blueprint Editor and guides you through using Variables, Macros, and Functions. You'll also learn about object-oriented programming (OOP) and discover the Gameplay Framework. In addition to this, you'll learn how Blueprint Communication allows one Blueprint to access information from another Blueprint. Later chapters will focus on building a fully functional game using a step-by-step approach. You'll start with a basic first-person shooter (FPS) template, and each chapter will build on the prototype to create an increasingly complex and robust game experience. You'll then progress from creating basic shooting mechanics to more complex systems, such as user interface elements and intelligent enemy behavior. The skills you will develop using Blueprints can also be employed in other gaming genres. In the concluding chapters, the book demonstrates how to use arrays, maps, enums, and vector operations. Finally, you'll learn how to build a basic VR game.

By the end of this book, you'll have learned how to build a fully functional game and will have the skills required to develop an entertaining experience for your audience.

What you will learn

  • Understand programming concepts in Blueprints
  • Create prototypes and iterate new game mechanics rapidly
  • Build user interface elements and interactive menus
  • Use advanced Blueprint nodes to manage the complexity of a game
  • Explore all the features of the Blueprint editor, such as the Components tab, Viewport, and Event Graph
  • Get to grips with object-oriented programming (OOP) concepts and explore the Gameplay Framework
  • Learn Virtual Reality development with UE Blueprint

Who this book is for

This book is for anyone who is interested in developing games or applications with UE4. Although basic knowledge of Windows OS is required, experience in programming or UE4 is not necessary.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
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.
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.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Blueprints Visual Scripting for Unreal Engine by Marcos Romero, Brenden Sewell in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.

Section 1: Blueprint Fundamentals

This section will explore the basic building blocks of Blueprints. You will gain a solid understanding of how Blueprints work and will be able to start creating your own games.
This section includes the following chapters:
  • Chapter 1, Exploring the Blueprint Editor
  • Chapter 2, Programming with Blueprints
  • Chapter 3, Actors and the Gameplay Framework
  • Chapter 4, Understanding Blueprint Communication

Exploring the Blueprint Editor

Welcome to the amazing world of game development with Unreal Engine 4. In this book, we will learn about how to develop games in Unreal Engine using the Blueprints Visual Scripting language, which was created by Epic Games for Unreal Engine 4.
The first step that is needed before we can learn about Blueprints is to prepare our development environment. Unreal Engine is free to download. We will learn about how to install Unreal Engine 4 and create a new project. After that, we will learn about some of the basic concepts of Blueprints and explore each panel of the Blueprint Editor.
In this chapter, we will cover the following topics:
  • Installing Unreal Engine
  • New projects and templates
  • Blueprints Visual Scripting
  • The Blueprint Editor interface
  • Adding Components to a Blueprint

Installing Unreal Engine

To use Unreal Engine, you must first install Epic Games Launcher:
  1. Access the website (https://www.unrealengine.com)
  2. Register and download Epic Games Launcher
  3. Install and start the launcher
  4. Click the Unreal Engine tab on the left-hand side
  5. Click on the Library tab that appears at the top of the screen
  6. Click the + button next to ENGINE VERSIONS to add a version of Unreal Engine to the launcher
  1. Click the Install button
  2. Click the Launch button to start an already installed version:
It is possible to keep multiple versions of Unreal Engine. This book uses version 4.20.3, but the examples were tested in version 4.22.0 and worked well. Blueprint is already a stable technology. The examples created in this book should work without problems in later versions.

Creating new projects and using templates

After starting up Unreal Engine Editor, a two-tab window will appear. The Projects tab is used to open existing projects and the New Project tab is used to create a new project, as shown in the following screenshot. The New Project tab has templates that can be used for the creation of a project. There are templates made with Blueprint and templates made with the C++ programming language. In this book, we will only use Blueprint templates:
At the bottom of the preceding screenshot, there are three boxes with project configuration options. These options can be modified later in the project, and they are as follows:
  • Target hardware: Desktop / Console or mobile/tablet
  • Graphical level: Maximum Quality or scalable 3D/2D
  • Starter content: With or without Starter Content
The starter content is a content pack with simple meshes, materials, and particle effects. The examples in this book assume that the starter content is being used.
The following are brief descriptions of each template:
  • First Person: For games with a first-person perspective
  • Flying: Contains a simple spaceship controlled by the player
  • Handheld AR: For augmented reality applications
  • nDisplay: For multi-display projects such as caves
  • Puzzle: For puzzle games using a mouse or touchscreen
  • Rolling: Contains a physics-based rolling ball controlled by the player
  • Side Scroller: For 3D side-scroller games
  • 2D Side Scroller: For side-scroller games with 2D sprites
  • Third Person: Contains a playable character with a camera that follows it
  • Top Down: Contains a character controlled by a mouse with a camera at a great distance above it
  • Twin Stick Shooter: Shows how to map the input to control movement and firing independently
  • Vehicle: Contains a simp...

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. About Packt
  4. Contributors
  5. Preface
  6. Section 1: Blueprint Fundamentals
  7. Exploring the Blueprint Editor
  8. Programming with Blueprints
  9. Actors and the Gameplay Framework
  10. Understanding Blueprint Communication
  11. Section 2: Developing a Game
  12. Object Interaction with Blueprints
  13. Enhancing Player Abilities
  14. Creating Screen UI Elements
  15. Creating Constraints and Gameplay Objectives
  16. Section 3: Enhancing the Game
  17. Building Smart Enemies with Artificial Intelligence
  18. Upgrading the AI Enemies
  19. Game States and Applying the Finishing Touches
  20. Building and Publishing
  21. Section 4: Advanced Blueprints
  22. Data Structures and Flow Control
  23. Math and Trace Nodes
  24. Blueprints Tips
  25. Introduction to VR Development
  26. Other Books You May Enjoy