addAsset method

AssetManager addAsset(
  1. Asset asset
)

Adds a single asset to the asset manager.

asset - The asset to be added.

Returns the AssetManager instance after adding the asset.

Implementation

AssetManager addAsset(Asset asset) => assetManager.addAsset(asset);