LookupArtifacts
Returns ImportResultID s corresponding to multiple Import operations.
Read time 3 minutesLast 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.
The overloads accept any contiguous block of memory, such as a managed array, a stack-allocated buffer, or a NativeArray.
System.Span<T>Additional Resources: AssetDatabaseExperimental.ProduceArtifact, AssetDatabaseExperimental.ProduceArtifactAsync.
LookupArtifacts(ReadOnlySpan<GUID>, Span<ImportResultID>, Type)
Returns ImportResultIDs corresponding to multiple Import operations.
public static void LookupArtifacts(ReadOnlySpan<GUID> guids, Span<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.
The overloads accept any contiguous block of memory, such as a managed array, a stack-allocated buffer, or a NativeArray.
System.Span<T>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.
The overloads accept any contiguous block of memory, such as a managed array, a stack-allocated buffer, or a NativeArray.
System.Span<T>Additional Resources: AssetDatabaseExperimental.ProduceArtifact, AssetDatabaseExperimental.ProduceArtifactAsync.
LookupArtifacts(ReadOnlySpan<GUID>, Span<ImportResultID>)
Returns ImportResultIDs corresponding to multiple Import operations.
public static void LookupArtifacts(ReadOnlySpan<GUID> guids, Span<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.
The overloads accept any contiguous block of memory, such as a managed array, a stack-allocated buffer, or a NativeArray.
System.Span<T>Additional Resources: AssetDatabaseExperimental.ProduceArtifact, AssetDatabaseExperimental.ProduceArtifactAsync.