class

FVisualScriptSlotCache

One instance's resolution of graph nodes to entries in its variable store: by node index, the GetVar / SetVar / container-mutator variable, latch state or Timeline state the node reads and writes, null until the node first runs. A name-keyed store costs a string hash and probe per node per run, and an unnamed latch also built its key string on every hit; resolved once, a node reaches its entry through one pointer. The entries point into the unordered_map that VisualScriptContext::vars names, which keeps element addresses across insertion and rehash, so the owner must Clear() whenever it erases, clears, moves or reassigns that map, or when the graphs it was resolved against may have been freed (a definition hot swap).

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

Public functions

ReturnsNameDescription
std::vector<VisualScriptValue*>&For
voidClearDrops every row.
voidInvalidateForgets every resolution but keeps the rows, so it is safe while a run on this instance is in progress (a nested run can reach it).
size_tGraphCount

Function details

For

C++
std::vector<VisualScriptValue*>& For(const VisualScriptGraph& graph, size_t nodeCount)

Clear

C++
void Clear()

Drops every row. Only between runs: a run in progress holds its row.

Invalidate

C++
void Invalidate()

Forgets every resolution but keeps the rows, so it is safe while a run on this instance is in progress (a nested run can reach it).

GraphCount

C++
size_t GraphCount() const
Generated from VisualScripting/VisualScriptVM.h via visualscripting.json · Nov 5, 2026Version 1.0.0