Skip to content

createSceneSource

createSceneSource<F, D>(options): CachedSceneSource<F, D>

Defined in: scene/create-source.ts:46

Builds a scene source from a load function. It caches each scene (a failed load is not cached, so it is retried), answers isCached, and reloads what any explorer shows when you call invalidate(). Implement SceneSource yourself only if your scenes are cached elsewhere.

F

D = unknown

SceneSourceOptions<F, D>

CachedSceneSource<F, D>