# ForceProduceArtifact(ArtifactKey)

> Imports an Asset using an Importer type.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental](/engine/6000.5/script-reference/unityeditor/experimental.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static ImportResultID ForceProduceArtifact(ArtifactKey artifactKey)
```

### Parameters

**** (\[ArtifactKey]\(/engine/6000.5/script-reference/unityeditor/experimental/artifactkey)): ArtifactKey specifying which Asset to produce with which Importer type.

### Returns

| Type                                                                                         | Description                                                                  |
| -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [ImportResultID](/engine/6000.5/script-reference/unityeditor/experimental/importresultid.md) | Unique identifier for the result produced using the specified `artifactKey`. |

### Remarks

Always imports an Asset using an Importer type, both of which are specified in `artifactKey`. Never reuses an existing cached import result.

This returns an invalid [ImportResultID](/engine/6000.5/script-reference/unityeditor/experimental/importresultid.md) in the following curcumstances:

1. An internal error occurs. This is accompanied by an error message in the Unity Log.
2. `artifactKey` contains an invalid Asset reference, or an invalid Importer type.
