LookupArtifacts
Returns ImportResultID s corresponding to multiple Import operations.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental
- Assembly: UnityEditor.CoreModule
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 .
guidsType of the importer class used to produce the artifacts from .
guidsRemarks
Invalid [[ImportResultID]s are returned in the following circumstances:
- The corresponding entry is invalid or unknown.
guids - is invalid.
importerType - 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.
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 .
guidsRemarks
Invalid [[ImportResultID]s are returned in the following circumstances:
- The corresponding entry is invalid or unknown.
guids - is invalid.
importerType - 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.