Skip to content

AssetManagerImporter

ClassAssetInventoryAssetInventory.Editor
public sealed class AssetManagerImporter : AssetImporter

Importer for discovering, indexing, and persisting asset manager content in the Asset Inventory catalog.

public Task Run(Asset forAsset = null)

Synchronizes configured Unity Cloud Asset Manager projects and collections into the local catalog, optionally limiting work to one existing package.

Parameters

Name Type
forAsset AssetInventory.Asset

Returns

System.Threading.Tasks.Task

PersistAssetFiles(CloudAssetManagement, List, Asset, bool)

Section titled “PersistAssetFiles(CloudAssetManagement, List, Asset, bool)”
public Task PersistAssetFiles(CloudAssetManagement cam, List<IAsset> assets, Asset asset, bool checkOrphans = true)

Creates or updates catalog file records for the supplied Asset Manager assets and optionally removes records no longer present remotely.

Parameters

Name Type
cam AssetInventory.CloudAssetManagement
assets System.Collections.Generic.List{Unity.Cloud.Assets.IAsset}
asset AssetInventory.Asset
checkOrphans System.Boolean

Returns

System.Threading.Tasks.Task

public AssetManagerImporter()