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

Name Type
spec AssetInventory.FolderSpec
attachedAsset AssetInventory.Asset
storeRelativePath System.Boolean
actAsSubImporter System.Boolean
skipSubPackages System.Boolean

Returns

System.Threading.Tasks.Task

public MediaImporter()