Skip to content

Function: initializeWorld()

initializeWorld(container, options): Promise<World>

Defined in: packages/core/src/init/world-initializer.ts:130

Initialize a new WebXR world with all required systems and setup.

Parameters

container

HTMLDivElement

options

WorldOptions = {}

Configuration options for the world.

Returns

Promise<World>

Promise that resolves to the initialized World instance.

Remarks

This function powers World.create. Prefer using that static helper.