LIA StudioLIA Studio
Documentation
⌘K
Back to the IDE
DocsConceptsVariables and types

Variables and types

How to create, type and use flow variables, and the difference between global and local scope.

Flow variables are managed from the My Blueprint panel (left side). Available types: Boolean, Integer, Float, String, Vector, Enum; each one can be a single value or an Array.

Creating a variable

  • Press the + next to "Variables" in My Blueprint — creates a Boolean variable named NewVar and selects it so you can edit its details in the Properties panel (name, type, container, default value).
  • Or, right-click a data output of any node → "Promote to variable". Creates a variable of that pin's type (String if the pin is Any) and automatically inserts a Set node right after in the execution chain, wired to that value.

Enum type

Setting the type to Enum shows a list editor ("Options") to define the allowed values; the default value becomes a dropdown over those options. A new Enum variable starts with a sample option you can rename or delete.

Array container

With the container set to Array, the default value is edited as a list (add/edit/remove rows), each element coerced to the variable's scalar type. An input pin expecting an array has no inline editor — it can only be fed by wire, typically from Get <Variable> → Array pin of another node.

Scope: global vs. local

Variables created from the top-level "Variables" section are global: visible from the main graph and from any Macro. Local variables only exist inside a Function — My Blueprint shows a separate "Function Variables · name" section only while that function's tab is open. Promoting a pin to a variable inside a function creates a variable local to that function; doing it in the main graph or inside a Macro always creates a global variable (Macros don't have their own variable scope).

Reading and writing a variable

Drag a variable's row from My Blueprint onto the canvas and drop it: a menu appears to choose Get (pure node, no exec pins, returns the current value) or Set (Exec-in/ Value-in → Out-exec/Value-out, writes the value and repeats it on its output so you can chain).

Documentation — LIA | LIA Studio