API

Function UnloadSmartAssetAsync

  • Unloads a loaded asset while keeping the key registered.

    Parameters

    • scene: Scene

      The scene whose smart asset to unload.

    • key: string

      The key to unload.

    Returns Promise<void>

    A promise that resolves once the asset has been unloaded.