ProduceArtifactsAsync(GUID[], Type)
Imports Assets asynchronously using an Importer type and returns matching cached results.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental
- Assembly: UnityEditor.CoreModule
public static ImportResultID[] ProduceArtifactsAsync(GUID[] artifactKey, Type importerType = null)
Parameters
The type of the importer class used to import the Assets.
Returns
Type | Description |
|---|---|
| ImportResultID[] | Unique identifiers for the results of Importing the specified |
Remarks
Reuses cached import results for each entry in where available.
artifactKeyThis method returns one or more invalid ImportResultIDs in the following curcumstances:
- An internal error occurs. This is accompanied by an error message in the Unity Log.
- The corresponding entry is an invalid Asset GUID, or
artifactKeyis invalid.importerType - There is no cached result for the corresponding entry, and an async import operation is queued. Completion of an async request is checked by calling AssetDatabaseExperimental.LookupArtifact.
artifactKey
Additional Resources: AssetDatabaseExperimental.LookupArtifact.