Chapter 01 Blueprint Fundamentals
#010 Get vs Set Variables
Get reads. Set writes. But when does each one actually run?
- 1:54 video
- Written lesson
- Beginner
Free for everyone from 27 Oct 2026, 00:00 CET
Get is pure, Set is not
Every variable has two nodes: one reads the value, one writes a new one.
- A Get node is pure: no exec pins, just a value output. It is read every time a connected node runs, and it doesn’t update anything by itself.
- A Set node is impure. It only runs when an execution wire reaches it. It stores the new value, and its output pin passes that value on.
Need the new value immediately? Wire the Set node’s output pin, not another Get.
One getter, two values
One Weapon State getter feeds two Print String nodes. The first Print shows Ready. Then Set Weapon State to Reloading. The second Print reads the same getter and shows Reloading.
Same node, two values, because the getter is read when each Print runs. Before the first Set, a Get returns the variable’s Default Value.
Working faster and safer
- Ctrl-drag a variable into the graph for Get, Alt-drag for Set.
- From another Blueprint you need a reference: the node gains a Target pin.
- Mark a variable Private, and other Blueprints can’t modify it.
- Read through an empty reference, and you get an Accessed None error.
Chapter 1 recap
- Event Tick runs every frame, so a looping timer handles periodic work.
- BeginPlay runs once per actor to set things up.
- Cast To checks a reference’s class; an interface sends one message to many kinds of actors.
- Functions return values; Custom Events can wait.
- Variables store state; Branch picks one path.
- Execution wires say when; data wires say what.
- Get and Set connect them: read with data, write with execution.
Three mistakes to avoid
- A Set with no exec wire never runs, even when its value is connected.
- A Delay can’t go inside a Function. Use a Custom Event.
- When the order looks wrong, add Print String nodes or place a breakpoint.
Covered in this lesson
- Get
- Set
- Default Value
- Target
- Private
- Accessed None