Skip to content

AssetImporter

ClassAssetInventoryAssetInventory.Editor
public abstract class AssetImporter : ActionProgress

No description is available for this type.

protected static bool CanDownload(AssetInfo info)

No description is available for this member.

Parameters

Name Type Description
info AssetInventory.AssetInfo

Returns

System.Boolean — No return description is available.

protected IEnumerator DownloadAsset(AssetInfo info)

No description is available for this member.

Parameters

Name Type Description
info AssetInventory.AssetInfo

Returns

System.Collections.IEnumerator — No return description is available.

protected static IEnumerator RemoveDownload(Asset asset)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset

Returns

System.Collections.IEnumerator — No return description is available.

protected static bool ApplyPackageTags(FolderSpec spec, Asset asset, bool fromAssetStore = false)

No description is available for this member.

Parameters

Name Type Description
spec AssetInventory.FolderSpec
asset AssetInventory.Asset
fromAssetStore System.Boolean

Returns

System.Boolean — No return description is available.

protected static bool HasNoIndex(int assetId)

No description is available for this member.

Parameters

Name Type Description
assetId System.Int32

Returns

System.Boolean — No return description is available.

protected static bool HasNoIndex(Asset asset)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset

Returns

System.Boolean — No return description is available.

protected static void RemoveWorkFolder(Asset asset, string tempPath)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset
tempPath System.String
protected static void MarkDone(Asset asset)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset
protected static void MarkInProcess(Asset asset)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset
protected static Asset Fetch(Asset asset)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset

Returns

AssetInventory.Asset — No return description is available.

protected static bool Exists(AssetFile file)

No description is available for this member.

Parameters

Name Type Description
file AssetInventory.AssetFile

Returns

System.Boolean — No return description is available.

protected static AssetFile Fetch(AssetFile file)

No description is available for this member.

Parameters

Name Type Description
file AssetInventory.AssetFile

Returns

AssetInventory.AssetFile — No return description is available.

protected static AssetFile Fetch(AssetFile file, IEnumerable<AssetFile> existing)

No description is available for this member.

Parameters

Name Type Description
file AssetInventory.AssetFile
existing System.Collections.Generic.IEnumerable{AssetInventory.AssetFile}

Returns

AssetInventory.AssetFile — No return description is available.

Fetch(AssetFile, Dictionary<string, List>, Dictionary<(string, int), AssetFile>)

Section titled “Fetch(AssetFile, Dictionary<string, List>, Dictionary<(string, int), AssetFile>)”
protected static AssetFile Fetch(AssetFile file, Dictionary<string, List<AssetFile>> existingByGuid, Dictionary<(string, int), AssetFile> existingByPathAndAssetId)

No description is available for this member.

Parameters

Name Type Description
file AssetInventory.AssetFile
existingByGuid System.Collections.Generic.Dictionary{System.String,System.Collections.Generic.List{AssetInventory.AssetFile}}
existingByPathAndAssetId System.Collections.Generic.Dictionary{System.ValueTuple{System.String,System.Int32},AssetInventory.AssetFile}

Returns

AssetInventory.AssetFile — No return description is available.

protected static Dictionary<string, List<AssetFile>> ToGuidDict(IEnumerable<AssetFile> files)

No description is available for this member.

Parameters

Name Type Description
files System.Collections.Generic.IEnumerable{AssetInventory.AssetFile}

Returns

System.Collections.Generic.Dictionary{System.String,System.Collections.Generic.List{AssetInventory.AssetFile}} — No return description is available.

public static Dictionary<int, AssetFile> ToIdDict(IEnumerable<AssetFile> files)

No description is available for this member.

Parameters

Name Type Description
files System.Collections.Generic.IEnumerable{AssetInventory.AssetFile}

Returns

System.Collections.Generic.Dictionary{System.Int32,AssetInventory.AssetFile} — No return description is available.

protected static Dictionary<(string Path, int AssetId), AssetFile> ToPathIdDict(IEnumerable<AssetFile> files)

No description is available for this member.

Parameters

Name Type Description
files System.Collections.Generic.IEnumerable{AssetInventory.AssetFile}

Returns

System.Collections.Generic.Dictionary{System.ValueTuple{System.String,System.Int32},AssetInventory.AssetFile} — No return description is available.

public static void Persist(Asset asset)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset

ValidatePreviewFile(AssetFile, string, bool)

Section titled “ValidatePreviewFile(AssetFile, string, bool)”
public static string ValidatePreviewFile(AssetFile file, string previewFolder, bool nullOnError = true)

No description is available for this member.

Parameters

Name Type Description
file AssetInventory.AssetFile
previewFolder System.String
nullOnError System.Boolean

Returns

System.String — No return description is available.

protected static void Persist(AssetFile file)

No description is available for this member.

Parameters

Name Type Description
file AssetInventory.AssetFile
protected static void UpdateOrInsert(Asset asset)

No description is available for this member.

Parameters

Name Type Description
asset AssetInventory.Asset

ProcessMediaAttributes(string, AssetFile, Asset)

Section titled “ProcessMediaAttributes(string, AssetFile, Asset)”
protected static Task ProcessMediaAttributes(string file, AssetFile info, Asset asset)

No description is available for this member.

Parameters

Name Type Description
file System.String
info AssetInventory.AssetFile
asset AssetInventory.Asset

Returns

System.Threading.Tasks.Task — No return description is available.

protected static FolderSpec GetDefaultImportSpec()

No description is available for this member.

Returns

AssetInventory.FolderSpec — No return description is available.