Function loadAssetContainerAsync
-
loadAssetContainerAsync(
source: SceneSource,
scene: Scene,
options?: LoadAssetContainerOptions,
): Promise<AssetContainer>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
- scene: Scene
is the instance of Scene to append to
Optionaloptions: LoadAssetContainerOptionsan object that configures aspects of how the scene is loaded
Returns Promise<AssetContainer>
The loaded asset container
Deprecated
Please use LoadAssetContainerAsync instead.
- source: SceneSource
Load a scene into an asset container