struct

VisualScriptVariable

A class member variable — per-instance state the graphs read/write through GetVar/SetVar nodes (the Visual Script analog of a Blueprint variable). type picks the VisualScriptValue storage; defaultValue seeds it when an instance is created.

Module
VisualScripting
Header
#include "VisualScripting/VisualScriptClass.h"
Namespace
Mowo

Properties

TypeNameDescription
std::stringname
FMValueTypetypeDefault FMValueType::Int.
VisualScriptValuedefaultValue
boolreplicatedReplicated (the Visual Script analog of UE's Replicated property specifier). The authority ships this variable's value to every client whenever it changes; a remote instance's own write is refused by the VM, the same way an unroutable RPC is dropped. Container and Custom types are refused — they have no wire form (see FVisualScriptVarSync). Default false.
std::stringrepNotifyRepNotify (UE's ReplicatedUsing). Names a custom function of this class that a RECEIVER runs after an authority update actually changed this variable's value — the hook a client uses to react to the change (play the hit flash, refresh the widget) without polling it from Tick. Empty means no hook; meaningless while replicated is off. The function must take no parameters: the new value is already in the variable when it runs, and an old-value parameter would need a second copy of every replicated variable kept per instance for the one hook that reads it.
boolinstanceEditableInstance Editable (UE's EditAnywhere on a Blueprint variable). The class default seeds every instance either way; this decides whether a PLACED instance may override it from the details panel. Off means the variable is class-internal state — an inspector row for it would invite a designer to tune something the graphs treat as private bookkeeping. Default false.
boolexposeOnSpawnExpose on Spawn (UE's ExposeOnSpawn). The variable becomes an input pin on the node that spawns this class, and the value is written onto the fresh instance BEFORE BeginPlay runs — which is the whole point: a variable set by a Set node after the spawn returns is already too late for the spawned actor's own BeginPlay to read. Default false.
FScriptVariableMetametaCategory, tooltip, range and the rest of what the Details row shows; the same metadata a Wolang @Editable field carries.
Generated from VisualScripting/VisualScriptClass.h via visualscripting.json · Nov 5, 2026Version 1.0.0