Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

AssetDatabaseExperimental.LookupArtifacts

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void LookupArtifacts(NativeArray<GUID> guids, NativeArray<ImportResultID> hashes, Type importerType);

Declaration

public static void LookupArtifacts(NativeArray<GUID> guids, NativeArray<ImportResultID> hashesOut);

Parameters

Parameter Description
guids Array of GUIDs of Assets to look up.
hashes Array of ImportResultIDs representing artifacts produced from guids.
importerType Type of the importer class used to produce the artifacts from guids.
hashesOut Array of ImportResultIDs representing artifacts produced from guids.

Description

Returns ImportResultIDs corresponding to multiple Import operations.

Invalid [[ImportResultID]s are returned in the following circumstances:

  1. The corresponding guids entry is invalid or unknown.
  2. importerType is invalid.
  3. The Import process has not produced a result for the corresponding Asset and Importer type at this time. An async Produce operation may still be in progress for this Asset and Importer type.

Additional resources: AssetDatabaseExperimental.ProduceArtifact, AssetDatabaseExperimental.ProduceArtifactAsync.