Function LoadSmartAssetAsync
-
LoadSmartAssetAsync(
scene: Scene,
key: string,
url?: string,
options?: SmartAssetLoadOptions,
): Promise<AssetContainer>Parameters
- scene: Scene
The scene to load the asset into.
- key: string
The key to load.
Optionalurl: stringOptional URL. If provided, the key is registered first.
Optionaloptions: SmartAssetLoadOptionsOptional loader hints and metadata for this asset.
Returns Promise<AssetContainer>
A promise resolving to the loaded AssetContainer.
- scene: Scene
Loads a scene-file asset by key.