SceneManager manages all resources in the scene

Implements

  • IDisposable

Constructors

Accessors

Methods

  • Create the scene. Calling this function again will dispose the old scene, if exists.

    Parameters

    • OptionalnewScene: Scene

      if provided, use it instead of creating a new Scene

    Returns Promise<Scene>

    a promise of Scene

  • Load texture asset from URL into a newly created Scene

    Parameters

    • url: string

      defines the url of the picture to load as a texture

    Returns Scene

    a new Scene

  • This will update the scene's configuration, including camera, lights, environment, etc.

    Parameters

    • newConfig: Partial<Config>

      defines the delta that should be configured. This includes only the changes.

    Returns Promise<void>