Skip to main content

Quick Replace Variable Nodes

Swap the variable on an existing Get or Set node by dropping a different variable from the My Blueprint panel onto it.

Published Updated |
Blueprints
Variables
Loading...

Blueprint variable nodes can be quickly replaced with an alternative variable. Simply drag the alternative variable from the My Blueprint panel and drop it onto the Get or Set node you wish to replace, and the node keeps its place and its wires.

While you hover, the tooltip reads Change node to read 'Health' for a Get node or Change node to write 'Health' for a Set node.

Where should I drop the variable?

The drop location must be on the node body itself and not on a pin. Dropping onto a pin creates a new Get or Set node wired to that pin instead, and the tooltip switches to a Make ... = ... message.

What happens when the types differ?

The replacement can be any type, however, if the new variable’s type can’t keep the existing wires, the tooltip warns WARNING this will break links! and those wires disconnect on drop. It’s ideal to swap between variables of the same type so every connection survives.

What else can I do by dragging a variable?

Here are the other drag shortcuts from the My Blueprint panel:

Drag From My BlueprintResult
Ctrl + Drag into the graphCreates a Get node
Alt + Drag into the graphCreates a Set node
Drag onto a Get or Set nodeReplaces that node’s variable
Drag onto a compatible pinCreates a Get or Set node wired to that pin

Why won’t the node change?

A few situations block the swap:

  • The node has split struct pins. The tooltip reads Cannot change 'Health' because it has split pins.
  • You’re switching a Set node to a read-only variable.
  • You’re dropping a local variable onto a node in a different function’s graph.

Check out the following resources to learn more about the subject.

Unreal Directive is free and ad-free.

If it saved you time, you can help keep it that way.

Donate