Skip to content

MediaImporter

ClassAssetInventoryAssetInventory.Editor
public sealed class MediaImporter : AssetImporter

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

Index(FolderSpec, Asset, bool, bool, bool)

Section titled “Index(FolderSpec, Asset, bool, bool, bool)”
public Task Index(FolderSpec spec, Asset attachedAsset = null, bool storeRelativePath = false, bool actAsSubImporter = false, bool skipSubPackages = false)

Indexes supported media from a source folder, optionally attaching it to an existing package and storing relative paths.

Parameters

NameType
specAssetInventory.FolderSpec
attachedAssetAssetInventory.Asset
storeRelativePathSystem.Boolean
actAsSubImporterSystem.Boolean
skipSubPackagesSystem.Boolean

Returns

System.Threading.Tasks.Task

public MediaImporter()