ProduceArtifact(ArtifactKey)
Imports an Asset using an Importer type or returns a matching cached result.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental
- Assembly: UnityEditor.CoreModule
public static ImportResultID ProduceArtifact(ArtifactKey artifactKey)
Parameters
ArtifactKey specifying what artifact to produce with which importer class.
Returns
Type | Description |
|---|---|
| ImportResultID | Unique identifier for the artifact produced from the specified |
Remarks
Reuses an existing cached import result if one exists for .
artifactKeyThis method returns an invalid ImportResultID in the following curcumstances:
- An internal error occurs. This is accompanied by an error message in the Unity Log.
- contains an invalid Asset reference, or an invalid Importer type.
artifactKey
Use AssetDatabaseExperimental.ForceProduceArtifact where it is not appropriate to use a cached result.