class

FVisualScriptSpawnScope

The exposed values of one spawn, armed for the duration of the spawn call on the calling thread. The gameplay layer's spawn path consumes them at the one moment that works — after the fresh instance has its class bound (which seeds every variable with the class default and would otherwise overwrite them) and before it is registered (which runs OnConstruct and, in a world already playing, BeginPlay).

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

Scopes nest by construction order because a spawned actor's BeginPlay may spawn again; the inner scope hides the outer one and restores it on the way out. A consumed scope stays armed but refuses a second take, so a re-entrant spawn can never inherit the values of the one it ran inside.

Constructors

SignatureNameDescription
explicit FVisualScriptSpawnScope(const std::vector<std::pair<std::string, Visual…FVisualScriptSpawnScope
~FVisualScriptSpawnScope()~FVisualScriptSpawnScope
FVisualScriptSpawnScope(const FVisualScriptSpawnScope&) = deleteFVisualScriptSpawnScope

Public functions

ReturnsNameDescription
FVisualScriptSpawnScope&operator=
boolWasConsumedFalse after the spawn call means nothing on that path honoured the pre-BeginPlay seam — the caller's cue to say so rather than to pretend the values arrived in time.

Function details

FVisualScriptSpawnScope

C++
explicit FVisualScriptSpawnScope(const std::vector<std::pair<std::string, VisualScriptValue>>& values)

~FVisualScriptSpawnScope

C++
~FVisualScriptSpawnScope()

FVisualScriptSpawnScope

C++
FVisualScriptSpawnScope(const FVisualScriptSpawnScope&) = delete

operator=

C++
FVisualScriptSpawnScope& operator=(const FVisualScriptSpawnScope&) = delete

WasConsumed

C++
bool WasConsumed() const

False after the spawn call means nothing on that path honoured the pre-BeginPlay seam — the caller's cue to say so rather than to pretend the values arrived in time.

Generated from VisualScripting/VisualScriptSpawnParams.h via visualscripting.json · Nov 5, 2026Version 1.0.0