Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LookupArtifacts

Returns ImportResultID s corresponding to multiple Import operations.
Read time 1 minuteLast updated 13 days ago

Definition

LookupArtifacts(NativeArray<GUID>, NativeArray<ImportResultID>, Type)

Returns ImportResultIDs corresponding to multiple Import operations.
public static void LookupArtifacts(NativeArray<GUID> guids, NativeArray<ImportResultID> hashes, Type importerType)

Parameters

Array of GUIDs of Assets to look up.

Array of ImportResultIDs representing artifacts produced from
guids
.

importerType

Type of the importer class used to produce the artifacts from
guids
.

Remarks

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.

LookupArtifacts(NativeArray<GUID>, NativeArray<ImportResultID>)

Returns ImportResultIDs corresponding to multiple Import operations.
public static void LookupArtifacts(NativeArray<GUID> guids, NativeArray<ImportResultID> hashesOut)

Parameters

Array of GUIDs of Assets to look up.

Array of ImportResultIDs representing artifacts produced from
guids
.

Remarks

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.