Function LoadSceneAsync
-
LoadSceneAsync(
source: SceneSource,
engine: AbstractEngine,
options?: LoadOptions,
): Promise<Scene>Parameters
- source: SceneSource
a string that defines the name of the scene file, or starts with "data:" following by the stringified version of the scene, or a File object, or an ArrayBufferView
- engine: AbstractEngine
is the instance of BABYLON.Engine to use to create the scene
Optionaloptions: LoadOptionsan object that configures aspects of how the scene is loaded
Returns Promise<Scene>
The loaded scene
- source: SceneSource
Load a scene