Book Image

Blueprints Visual Scripting for Unreal Engine 5 - Third Edition

By : Marcos Romero, Brenden Sewell
5 (1)
Book Image

Blueprints Visual Scripting for Unreal Engine 5 - Third Edition

5 (1)
By: Marcos Romero, Brenden Sewell

Overview of this book

Unreal Engine's Blueprint visual scripting system enables designers to script their games and programmers to create base elements that can be extended by designers. With this book, you'll explore all the features of the Blueprint Editor, along with expert tips, shortcuts, and best practices. The book guides you through using variables, macros, and functions, and helps you learn about object-oriented programming (OOP). You'll discover the Gameplay Framework and advance to learning how Blueprint Communication allows one Blueprint to access information from another Blueprint. Later chapters focus on building a fully functional game step by step. 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 book demonstrates how to use arrays, maps, enums, and vector operations and introduces the elements needed for VR game development. In the final chapters, you’ll learn how to implement procedural generation and create a product configurator. By the end of this book, you'll have learned how to build a fully functional game and have the skills required to develop an entertaining experience for your audience.
Table of Contents (28 chapters)
1
Part 1: Blueprint Fundamentals
6
Part 2: Developing a Game
11
Part 3: Enhancing the Game
16
Part 4: Advanced Blueprints
21
Part 5: Extra Tools

Animating a zoomed view

A core element of modern first-person shooters is a variable field of view (FOV) in the form of a player's ability to look down the scope of a gun to get a closer view of a target. This is a significant contributor to the feeling of accuracy and control that modern shooters provide. Let's add a simple form of this functionality to our prototype. To do that, follow these steps:

  1. In an empty section of the grid next to your Mouse input nodes, right-click, search for zoom, and add a Zoom Event node.
  2. We want to modify the FOV value that is contained within the First Person Camera Component, so go to the Components panel and drag First Person Camera out onto Event Graph.
  3. Drag the output pin of First Person Camera node into empty grid space, search for the Set Field Of View node, and place it. Lowering the FOV gives the effect of zooming into a narrower area in the center of the screen. Since the Default FOV value is set to 90, for our zoom...