Function LoadSmartAssetMapAsync
-
LoadSmartAssetMapAsync(
scene: Scene,
source: string | File | ISerializedSmartAssetMap,
rootUrl?: string,
): Promise<void>Parameters
- scene: Scene
The scene to load assets into.
- source: string | File | ISerializedSmartAssetMap
A URL string, File object, or pre-parsed ISerializedSmartAssetMap.
OptionalrootUrl: stringOptional root URL for resolving relative asset paths.
Returns Promise<void>
A promise that resolves after the map has been loaded and all registered assets have been attempted.
- scene: Scene
Loads an asset map from a URL, File, or pre-parsed JSON object.