API

Function RegisterSmartAsset

  • Registers a smart asset entry mapping a key to a URL.

    Parameters

    • scene: Scene

      The scene whose smart asset registry to update.

    • key: string

      Unique string identifier for this asset.

    • url: string

      URL or path to the asset file.

    • Optionaloptions: SmartAssetRegistrationOptions

      Optional loader hints and metadata for this asset.

    Returns void