Skip to content

ScriptGraphs

Defined in: logic/ScriptGraphPlugin.ts:219

Resource for game code to reach an agent’s variables and blackboard.

new ScriptGraphs(states): ScriptGraphs

Defined in: logic/ScriptGraphPlugin.ts:220

Map<number, AgentState>

ScriptGraphs

blackboard(entity): Blackboard

Defined in: logic/ScriptGraphPlugin.ts:222

number

Blackboard


halted(entity): boolean

Defined in: logic/ScriptGraphPlugin.ts:237

Whether the instance spent its step budget and stopped.

number

boolean


setVariable(entity, name, value): void

Defined in: logic/ScriptGraphPlugin.ts:232

Write a graph variable — how game code hands a running graph its input.

number

string

ScriptValue

void


variable(entity, name): ScriptValue

Defined in: logic/ScriptGraphPlugin.ts:227

A graph variable’s value, or null before the instance has started.

number

string

ScriptValue