API

Function RemoveSmartAssetAsync

  • Removes a key from the registry. If the asset is loaded, it is unloaded first.

    Parameters

    • scene: Scene

      The scene that owns the smart asset.

    • key: string

      The key to remove.

    Returns Promise<void>

    A promise that resolves when the asset has been unloaded and removed.