Function runFlowGraphs
-
runFlowGraphs(
scene: SceneContext,
loaded: readonly LoadedFlowGraph[],
animations?: readonly AnimationGroup[],
): Promise<FgRuntime[]>Parameters
- scene: SceneContext
- loaded: readonly LoadedFlowGraph[]
- animations: readonly AnimationGroup[] = []
Returns Promise<FgRuntime[]>
Build + attach a runtime for every flow graph loaded onto a container. Binds the graph's pre-resolved accessors, the container's animation groups (indexed by glTF order), and scene-owned animation capabilities, then drives each runtime through the scene's frame loop. Returns the attached runtimes.