ForceProduceArtifact(ArtifactKey)
Imports an Asset using an Importer type.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental
- Assembly: UnityEditor.CoreModule
public static ImportResultID ForceProduceArtifact(ArtifactKey artifactKey)
Parameters
ArtifactKey specifying which Asset to produce with which Importer type.
Returns
Type | Description |
|---|---|
| ImportResultID | Unique identifier for the result produced using the specified |
Remarks
Always imports an Asset using an Importer type, both of which are specified in . Never reuses an existing cached import result.
artifactKeyThis 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