mountHeadlessScene
mountHeadlessScene(
Scene,world?):Promise<MountedScene>
Defined in: packages/engine/src/components/headless.tsx:51
Mounts Scene in Node, with no page and nothing drawn: the physics
wasm loaded and every effect the components run settled, so the world
is ready to step when it returns. A scene that throws rejects. It mounts
on a world of its own unless handed one, as a room hands its own.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
Scene |
ComponentType |
world |
World |
Returns
Section titled “Returns”Promise<MountedScene>