Skip to content

SceneStreamingController

Defined in: scene/sceneStreaming.ts:89

new SceneStreamingController(host, config?): SceneStreamingController

Defined in: scene/sceneStreaming.ts:104

SceneStreamHost

SceneStreamingConfig

SceneStreamingController

clear(): void

Defined in: scene/sceneStreaming.ts:124

void


configure(config): void

Defined in: scene/sceneStreaming.ts:109

SceneStreamingConfig

void


getActive(): string[]

Defined in: scene/sceneStreaming.ts:149

Scenes the controller currently holds in-range.

string[]


getFocusEntity(): number | null

Defined in: scene/sceneStreaming.ts:144

number | null


register(cell): void

Defined in: scene/sceneStreaming.ts:115

StreamCell

void


setFocus(x, y, z?): void

Defined in: scene/sceneStreaming.ts:133

Set the focus directly (or let the streaming system read a focus entity).

number

number

number = 0

void

z defaults to the plane a flat game’s cells sit on.


setFocusEntity(entity): void

Defined in: scene/sceneStreaming.ts:140

Follow an entity; the streaming system reads its Transform each tick.

number | null

void


unregister(scene): void

Defined in: scene/sceneStreaming.ts:119

string

void


update(): void

Defined in: scene/sceneStreaming.ts:154

Reconcile resident cells against the current focus. Idempotent per tick.

void