Beginning Unreal Engine 4 Blueprints Visual Scripting: Using C++: From Beginner to Pro
By Satheesh Pv
()
About this ebook
Discover how Unreal Engine 4 allows you to create exciting games using C++ and Blueprints. This book starts with installing, launching, and examining the details of Unreal Engine.
Next, you will learn about Blueprints and C++ and how to leverage them. The following chapters talk in detail about gameplay, basic physics, and ray-casting for game development in Unreal Engine. Furthermore, you’ll create material, meshes, and textures.
The last chapter brings all the concepts together by building a demo game. By the end of the book, you’ll be equipped with the know-how and techniques needed to develop and deploy your very own game in Unreal Engine.
What You Will Learn
- Discover Blueprints and how to apply them in Unreal Engine 4
- Get started with C++ programming in Unreal Engine 4
- Apply the concepts of physics and ray-casting
- Work with the Gameplay Framework
Who This Book Is For
Beginners interested in learning Blueprints visual scripting and C++ for programming games in Unreal Engine 4 would find this book useful.
Related to Beginning Unreal Engine 4 Blueprints Visual Scripting
Related ebooks
Beginning Unreal Game Development: Foundation for Simple to Complex Games Using Unreal Engine 4 Rating: 0 out of 5 stars0 ratingsLearning Unreal® Engine iOS Game Development Rating: 0 out of 5 stars0 ratingsBeginning PBR Texturing: Learn Physically Based Rendering with Allegorithmic’s Substance Painter Rating: 0 out of 5 stars0 ratingsBecoming Comfortable with Unity Rating: 0 out of 5 stars0 ratingsSwift 3 Game Development - Second Edition Rating: 0 out of 5 stars0 ratingsUnreal Engine Game Development Cookbook Rating: 0 out of 5 stars0 ratingsSource SDK Game Development Essentials Rating: 0 out of 5 stars0 ratingsC++ Game Development: Build High-Performance Games from Scratch Rating: 0 out of 5 stars0 ratingsDeveloping Turn-Based Multiplayer Games: with GameMaker Studio 2 and NodeJS Rating: 0 out of 5 stars0 ratingsGetting Started with 3D Animation in Unity: Getting Started, #1 Rating: 0 out of 5 stars0 ratingsUnreal Engine 5 Shaders and Effects Cookbook: Over 50 recipes to help you create materials and utilize advanced shading techniques Rating: 0 out of 5 stars0 ratingsMastering Oculus Rift Development Rating: 0 out of 5 stars0 ratingsPractical Shader Development: Vertex and Fragment Shaders for Game Developers Rating: 0 out of 5 stars0 ratingsOuya Unity Game Development Rating: 0 out of 5 stars0 ratingsThree Dimensional Computer Graphics: Exploring the Intersection of Vision and Virtual Worlds Rating: 0 out of 5 stars0 ratingsThe Coming Robot Revolution: Expectations and Fears About Emerging Intelligent, Humanlike Machines Rating: 0 out of 5 stars0 ratingsSocial Media for WordPress Beginner's Guide Rating: 0 out of 5 stars0 ratingsMinecraft Story Mode the Complete Adventure Game Xbox One, Wii U, PS3, Download, Unofficial Guide Rating: 0 out of 5 stars0 ratings3D Modeling and Visualization Second Edition Rating: 0 out of 5 stars0 ratingsBuildbox 2.x Game Development Rating: 0 out of 5 stars0 ratingsMastering the 3D Photography Cha-Cha Rating: 0 out of 5 stars0 ratingsLibgdx Cross-platform Game Development Cookbook Rating: 0 out of 5 stars0 ratingsMastering Autodesk Maya 2016: Autodesk Official Press Rating: 0 out of 5 stars0 ratingsBeginning Windows Mixed Reality Programming: For HoloLens and Mixed Reality Headsets Rating: 0 out of 5 stars0 ratingsMixed reality Third Edition Rating: 0 out of 5 stars0 ratingsHTML5 Game Development with GameMaker Rating: 0 out of 5 stars0 ratingsPapervision3D Essentials Rating: 0 out of 5 stars0 ratings3D Graphics Programming Theory Rating: 0 out of 5 stars0 ratingsAdobe Flash Professional CC 2015: A Tutorial Approach Rating: 0 out of 5 stars0 ratings
Programming For You
C Programming For Beginners: The Simple Guide to Learning C Programming Language Fast! Rating: 5 out of 5 stars5/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsExcel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Coding with JavaScript For Dummies Rating: 0 out of 5 stars0 ratingsHTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Narrative Design for Indies: Getting Started Rating: 4 out of 5 stars4/5JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5Python Data Structures and Algorithms Rating: 5 out of 5 stars5/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5C# 7.0 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsC All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5
Reviews for Beginning Unreal Engine 4 Blueprints Visual Scripting
0 ratings0 reviews
Book preview
Beginning Unreal Engine 4 Blueprints Visual Scripting - Satheesh Pv
© Satheesh Pv 2021
S. PvBeginning Unreal Engine 4 Blueprints Visual Scriptinghttps://doi.org/10.1007/978-1-4842-6396-9_1
1. Introduction to Unreal Engine 4
Satheesh Pv¹
(1)
Mumbai, India
Hello there, and welcome to this beginner’s guide to Unreal Engine 4. Throughout this book, you learn about different aspects of Unreal Engine 4, and you learn to create a sample game with the knowledge you gain. In this chapter, you learn how to download Unreal Engine through Epic Games Launcher and GitHub. After that, you learn how a project is structured and become familiar with the Unreal Editor interface.
Getting Unreal Engine
This chapter looks at how you acquire Unreal Engine. You can download it through either Epic Games Launcher or GitHub. Either way, you need to create an account at www.unrealengine.com, which is free.
First, let’s look at the differences between Epic Games Launcher and GitHub.
The Epic Games Launcher version (a.k.a. the binary version or vanilla version) of Unreal Engine 4 comes with the engine prebuilt, and you can select the platforms you need. You can also select the engine source, starter template, feature packs, and so forth, if you need them. The binary version does not support creating dedicated servers for your game, so if you are planning to develop a multiplayer game with a dedicated server, you must use the source version.
The GitHub version (a.k.a. the source version) gives you the entire source code of the engine without any binaries, so you need to compile it manually. The source code version of the engine is typically used by developers who want to fix the engine’s bugs or add new features. This version is also required if your game relies on a dedicated server. The prerequisites for the source code version of the engine are Visual Studio 2019 (or higher) on Windows or Xcode on macOS.
Download from Epic Games Launcher
If you don’t have an Epic Games account, you need to create one at www.unrealengine.com/id/register.
If you do have an Epic Games account, then head over to www.unrealengine.com/en-US/get-now and select your license to download and install Epic Games Launcher for your platform. After installation, open the launcher, and log in using your credentials. You should see the screenshot shown Figure 1-1.
../images/496849_1_En_1_Chapter/496849_1_En_1_Fig1_HTML.jpgFigure 1-1
Epic Games Launcher with engine version4.24 installed
Near the ENGINE VERSIONS tab, you can see a + button, which allows you to download and install any engine version you want.
Download from GitHub
If you prefer to work with the source version of the engine, you can do so by downloading the engine source code and compiling it yourself, but you must have Visual Studio 2019 (with C++ support enabled) installed if you use Windows or Xcode if you are on macOS.
First, you must create a GitHub account (it’s free) and log in to your Epic Games account. Once logged in, go to your account dashboard in Epic Games and link your GitHub account. After this, you are ready to download the full source code for Unreal Engine 4.
Downloading Source Code
Once you have access to the Unreal Engine repository, you can click the Clone or download button and select the Download ZIP button (as seen in Figure 1-2).
../images/496849_1_En_1_Chapter/496849_1_En_1_Fig2_HTML.jpgFigure 1-2
Download ZIP button in Unreal Engine Git repository
Cloning the Unreal Engine Repository
To clone a repository, you need to have a Git client installed. Cloning is the process of downloading or copying a repository into an empty folder in your working machine, including the full Git history, so you can use Git commands. You only download the source code without any Git files, so you won’t track changes or have any information about previous commits.
I use SourceTree from Atlassian.
Note
If you prefer other tools, please visit https://git-scm.com/download/gui/windows for Windows or https://git-scm.com/download/gui/mac for macOS.
After installing SourceTree, open the application. In the new tab, select Add an account. In the new window, switch the hosting service to GitHub and select the Refresh OAuth Token button. Once SourceTree has access to your repos, you can select Unreal Engine repo from your repositories list and then select Clone. This lets you choose a path to save the files. Under Advanced Options, select the release branch and click the Clone button.
Once cloning is done or after downloading the ZIP file, go to the directory and double-click the Setup.bat file. (If you downloaded the ZIP file, extract it first). You can include or exclude specific platforms by passing the necessary flags in the Setup.bat file. For example, to exclude Mac and iOS platforms on a Windows machine, you can run Setup.bat like this:
Setup.bat --exclude=Mac --exclude=iOS
This ensures that any dependencies and files required for the Mac and iOS platforms are skipped. Once Setup.bat finishes, run GenerateProjectFiles.bat, which generates the UE4 solution file that you can open in Visual Studio. After opening the solution file, you can see UE4 under the Engine folder in Solution Explorer. Right-click UE4 and select Build. This starts the build process, which might take an hour or more to compile, depending on your hardware.
Getting to Know Unreal Editor
Now that you have installed (or compiled) your engine, let’s start it up. Throughout this book, we only work with the binary version of the engine, which is 4.24. You create a blank project and learn about the aspects of the engine. To start the engine, click the Launch button for 4.24.3. This opens the Unreal Project Browser window, where you can select an existing project or create a new one from scratch or a template (see Figure 1-3).
../images/496849_1_En_1_Chapter/496849_1_En_1_Fig3_HTML.jpgFigure 1-3.
Let’s select Blank Project and click Next. On the next page, you are prompted to either start a blank project or create one based on a template. For our purposes, let’s select a blank template and click Next. This gives you a project with no code or content and with the default settings. Finally, the last page allows you to do basic configuration and name your project.
Let’s go through the Project Settings page shown in Figure 1-4.
Blueprint (labeled 1 in the screenshot) lets you choose whether your project is based on Blueprints or C++. If you start in Blueprints, you can later add C++ code to your project.
Depending on your project, you can change Maximum Quality (labeled 2 in the screenshot) to Scalable 3D/2D. The first option is suitable for PCs/consoles, and the second option is suitable for mobile.
If you target high-end PC games and own an Nvidia RTX graphics card, you can enable raytracing features (labeled 3 in the screenshot) for your game.
Desktop/Console (labeled 4 in the screenshot) lets you select the closest equivalent target platform.
With Starter Content (labeled 5 in the screenshot) lets you choose if you want to copy starter content to your project. It contains simple meshes with basic materials.
Folder (labeled 6 in the screenshot) is where you enter the location of the project’s folder.
Name (labeled 7 in the screenshot) is where you enter the name of your newly created project.
../images/496849_1_En_1_Chapter/496849_1_En_1_Fig4_HTML.jpg