loadScene() function
Helper to load a SceneInterface.
Signature:
declare function loadScene(ctx: Context, options?: Partial<SceneOptions> | undefined): Promise<SceneInterface>;
Parameters
Parameter |
Type |
Description |
---|---|---|
ctx | ||
options |
Partial<SceneOptions> | undefined |
(Optional) |
Promise<SceneInterface>
Remarks
This helper allows you to provide all scene options and load up a scene without having to interact with AdapterInterface internals.
Example
const ctx = createContext(...);
const design = await loadDesign(ctx, 'core3d:design:...');
const scene = await loadScene(ctx, { target: design });