Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 38 ยท Blueprints

Unreal Blueprint Basics: Visual Scripting Explained

Learn what Blueprints are, the main Blueprint types, how the editor is laid out, how execution flows through nodes and pins, and build your first Blueprint actor.

Blueprints are Unreal Engine's visual scripting system. Instead of typing code, you connect nodes with wires. A Blueprint is also a class: a reusable recipe for an actor, with components, variables and logic. Blueprints are fast to build and let artists and designers create gameplay; many shipped games are built mostly with them.

Unreal Engine cannot run in your browser, so we describe the editor in words. The stand-ins are small Python programs that mimic how Blueprint execution works.

Types of Blueprints

When you create one (Content Browser > Add > Blueprint Class) you pick a parent class:

  • Actor: a general object you place in levels. The usual choice.
  • Pawn and Character: things that can be controlled.
  • Actor Component: reusable logic without a transform.
  • Game Mode Base, Player Controller, HUD, Game Instance: framework classes.
  • Blueprint Function Library / Interface / Macro Library: shared helpers.
  • Widget Blueprint (User Interface) for menus and HUDs.
  • Level Blueprint: one per level, a scratchpad for level-specific events. Use sparingly; it cannot be reused.

Name the asset BP_Door, BP_Pickup and so on. Double-click to open the Blueprint Editor.

The Blueprint Editor

  • Components panel (top left): the actor's component tree (like in the previous lesson).
  • My Blueprint panel (left): Graphs, Functions, Macros, Variables, Event Dispatchers.
  • Viewport tab: lay out components visually.
  • Construction Script: runs when the actor is placed or changed in the editor. Use it to adjust things (for example, set the size of a fence from a number).
  • Event Graph: where run-time logic lives.
  • Details panel (right): properties of the selected item.
  • Compile (top): checks and builds the Blueprint. A green check means success; fix red errors before you test. Save after compiling.

Nodes, pins and wires

Blueprint graphs are made from nodes:

  • Event nodes (red): the entry points: Event BeginPlay, Event Tick, Event ActorBeginOverlap, input events and your own Custom Events.
  • Function and action nodes (blue): do something: Print String, Set Actor Location, Destroy Actor.
  • Variable nodes (colored by type): get or set values.
  • Flow control: Branch (if), Sequence, For Each Loop, Delay, Switch.

Each node has pins. White execution pins carry the flow of control from node to node; colored data pins carry values (red Boolean, green Float, cyan Integer, magenta String, yellow Vector...). Drag from a pin into empty space to open the context menu and search for a node. Right-click the graph to add nodes, press Ctrl+C / Ctrl+V to copy, Q aligns, C adds a comment box.

flowchart LR
  E["Event BeginPlay"] --> P["Print String: Hello"]
  P --> D["Delay 2.0"]
  D --> S["Set Actor Hidden: true"]

White wires carry execution from left to right.

Python Stand-in: execution flow through nodes

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Your first Blueprint: a spinning cube

  1. Create BP_SpinningCube with parent Actor.
  2. In Components, Add > Static Mesh and set its mesh to the engine Cube (Static Mesh drop-down; show Engine content if the cube is hidden).
  3. Open the Event Graph. Delete nothing; find Event Tick (it provides Delta Seconds).
  4. Drag from the Event Tick's white pin and add Add Actor Local Rotation. Click it and set Delta Rotation Yaw to a value like 90 multiplied by Delta Seconds (add a Multiply node).
  5. Compile and Save. Drag the Blueprint into the level and press Play.

Multiplying by Delta Seconds makes it turn 90 degrees per second on any frame rate.

Python Stand-in: why multiply by delta seconds

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Without delta time, the cube spins faster on a fast PC. With it, all machines agree.

Debugging

  • Print String shows text on screen and in the Output Log.
  • Set a breakpoint on a node (F9) and press Play; execution pauses and the wires animate. Step with F10.
  • Watch a variable by right-clicking it > Watch this value.
  • During Play, select the actor in the Debug Object drop-down to see live wires.
  • The Message Log lists compile warnings after a Compile.

Keep graphs readable: align nodes, use comment boxes (C) and collapse repeated chains into functions. A graph that is a tangle of crossing wires is as hard to maintain as spaghetti code.

Blueprints or C++?

Blueprints are great for prototyping, game logic, UI and content. C++ is better for heavy math, per-frame loops over many objects, low-level systems and engine extension. A practical split: write the base classes and performance-critical parts in C++, and build content and variations in Blueprints that inherit from them. You will see this in the C++ chapter.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What do white execution pins carry?

    White wires define the order nodes run in; colored pins carry data.
  2. 2. Which event runs once when the game starts for an actor?

    Event BeginPlay runs when the actor starts playing.
  3. 3. Why multiply rotation by Delta Seconds in Event Tick?

    Delta Seconds is the time of the last frame, so movement per second stays constant.
  4. 4. Which Blueprint type is reusable logic without a transform?

    An Actor Component holds logic only and can be added to any actor.

Summary

  • Blueprints are visual scripts and reusable classes; pick the right parent class.
  • The editor has Components, My Blueprint, Construction Script, Event Graph and Compile.
  • Nodes connect with white execution wires and colored data wires.
  • Use delta time for movement, Print String and breakpoints for debugging.

Next: Variables, Functions and Events