Function addFlowGraph
-
addFlowGraph(
scene: SceneContext,
graph: FgGraph,
wiring?: FgWiring,
opts?: { rightHanded?: boolean },
): Promise<FgRuntime>Parameters
- scene: SceneContext
- graph: FgGraph
- wiring: FgWiring = {}
Optionalopts: { rightHanded?: boolean }
Returns Promise<FgRuntime>
Imperatively build, attach, and drive a flow graph on a scene WITHOUT a glTF asset (BJS
FlowGraphCoordinator.addFlowGraph+ run). Defaults to the scene-owned animation caps and the shared scene bus (so it can exchange custom events with other graphs); both are overridable viawiring. The runtime starts on the next frame and auto-disposes on scene dispose.