Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ProduceArtifactsAsync(GUID[], Type)

Imports Assets asynchronously using an Importer type and returns matching cached results.
Read time 1 minuteLast updated 12 days ago

Definition

public static ImportResultID[] ProduceArtifactsAsync(GUID[] artifactKey, Type importerType = null)

Parameters

artifactKey

GUID[]
GUIDs specifying Assets to import.

importerType

The type of the importer class used to import the Assets.

Returns

Type

Description

ImportResultID[]Unique identifiers for the results of Importing the specified
artifactKey
entries using
importerType
.

Remarks

Reuses cached import results for each entry in
artifactKey
where available.
This method returns one or more invalid ImportResultIDs in the following curcumstances:
  1. An internal error occurs. This is accompanied by an error message in the Unity Log.
  2. The corresponding
    artifactKey
    entry is an invalid Asset GUID, or
    importerType
    is invalid.
  3. There is no cached result for the corresponding
    artifactKey
    entry, and an async import operation is queued. Completion of an async request is checked by calling AssetDatabaseExperimental.LookupArtifact.