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
| Signature | Name | Description |
|---|---|---|
explicit FVisualScriptSpawnScope(const std::vector<std::pair<std::string, Visual… | FVisualScriptSpawnScope | |
~FVisualScriptSpawnScope() | ~FVisualScriptSpawnScope | |
FVisualScriptSpawnScope(const FVisualScriptSpawnScope&) = delete | FVisualScriptSpawnScope |
Public functions
| Returns | Name | Description |
|---|---|---|
FVisualScriptSpawnScope& | operator= | |
bool | WasConsumed | 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. |
Function details
FVisualScriptSpawnScope
explicit FVisualScriptSpawnScope(const std::vector<std::pair<std::string, VisualScriptValue>>& values)~FVisualScriptSpawnScope
~FVisualScriptSpawnScope()FVisualScriptSpawnScope
FVisualScriptSpawnScope(const FVisualScriptSpawnScope&) = deleteoperator=
FVisualScriptSpawnScope& operator=(const FVisualScriptSpawnScope&) = deleteWasConsumed
bool WasConsumed() constFalse 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.