Unreal Engine 5 Blueprint Beginner Tutorial

Jul 27, 2024

Unreal Engine 5 Blueprint Beginner Tutorial 🏗️

Introduction

  • Purpose: Explain what Blueprints are, why to learn them, and how to use them in Unreal Engine 5.
  • Blueprints: Visual scripting system of Unreal Engine used to create games, tools, and interactive products.

What Are Blueprints?

  • Definition: Visual scripting system that allows creating games, tools, interactive experiences, etc.
  • Utility: Useful for game creation and non-game projects like short films or interactive products.

Tutorial Content Overview

  • Basics: Creating Blueprints, user interface in Blueprint editor, Blueprint variables.
  • Examples: Create five different Blueprints (e.g., door, health and damage boxes, hat pickup, soccer goal).

Getting Started

  • Previous Video: Install Unreal Engine 5 and overview basics of the Unreal Editor.
  • New Project Set Up: Games tab > Third Person Template > Ensure Blueprint selected and include starter content.

Blueprint Editor User Interface

  • Viewport: Main area for viewing and editing Blueprint components.
  • Components Window: Lists components that make up the Blueprint.
  • Details Panel: Provides details about the selected component.
  • Event Graph: Main area for scripting events and logic for the Blueprint.
  • Construction Script: Executes before the game starts, setting up initial values or conditions.
  • My Blueprints: Lists all graphs, variables, functions, and macros.

Creating a Simple Blueprint Node

  • Event Begin Play: Fires off when the game starts.
  • Print String Node: Used to print a message to the screen for debugging.
  • Compile & Save: Always compile and save after making changes.

Blueprint Variables

  • Booleans: True/false values.
  • Integers: Whole numbers (e.g., 1, 2, 3).
  • Floats: Decimal numbers (e.g., 1.5, 2.75).
  • Strings: Text values (e.g., "Hello World").
  • Vectors: Three floats representing a 3D coordinate or direction.
  • Rotators: Three floats representing rotation around x, y, z axes.
  • Transforms: Combines Vector and Rotator for location, rotation, and scale.

Examples and Applications

1. Simple Door Blueprint

  • Purpose: Create a door that can be opened/closed with a key press.
  • Components: Door mesh, door frame, collision box.
  • Logic: Use event overlap and input key to rotate the door.
  • Smooth Rotation: Use Timeline node to create smooth door opening/closing.

2. Hat Pickup Blueprint

  • Purpose: Equip a hat on the character when picking up.
  • Components: Hat mesh, collision sphere, text render.
  • Logic: Use overlap events and custom events to attach hat mesh to character's head.
  • Sockets: Used for attaching hat to the character model.

3. Damage & Health Boxes

  • Damage Box: Decreases character's health when overlapping.
  • Heal Box: Increases character's health when overlapping.
  • Logic: Use looping events to apply/recover damage while overlapping.
  • UI: Add health bar widget to display character's health.

4. Simple Soccer Goal

  • Purpose: Score goals by pushing a ball into the goal.
  • Components: Soccer goal mesh, soccer ball mesh, collision box.
  • Logic: Use overlap events to trigger goal scoring, respawn ball.

5. Hit Actor (e.g., Fall Guys obstacle)

  • Purpose: Create spinning obstacles that impact players.
  • Components: Static mesh, capsule collision, rotating movement component.
  • Logic: Use overlap events to launch character upon collision, implement ragdoll physics.
  • Custom Events: Used for resetting character after being hit.

Final Notes

  • Upcoming Tutorials: Intermediate and Advanced Blueprint tutorials to expand skills.
  • Additional Resources: Check out premium courses on smartpoly.teachable.com.
  • Support: Subscribe for updates and leave comments for clarification.