Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SceneLoader

Handles loading of JSON based configurations. Supports different versions of the configuration schema.

Hierarchy

  • SceneLoader

Index

Constructors

Accessors

Methods

Constructors

constructor

  • Creates a new instance of the SceneLoader

    Parameters

    • resourceProvider: IResourceProvider

      Resource provider to be used for resolving uris

    • engine: Engine
    • scene: Scene

    Returns SceneLoader

Accessors

resourceProvider

  • Gets/sets the resource provider to be used for resolving the uris

    Returns IResourceProvider

  • Gets/sets the resource provider to be used for resolving the uris

    Parameters

    Returns void

scene

  • get scene(): Scene
  • Returns Scene

Methods

load

  • load(input: object, identifier?: string): Promise<SceneResources>
  • Loads and initalises a Babylon.js scene from a configuration object.

    Parameters

    • input: object

      Configuration JSON object

    • Optional identifier: string

    Returns Promise<SceneResources>

    Promise holding a BABYLON.Scene object

Generated using TypeDoc