LookupArtifact(ArtifactKey)
Returns an ImportResultID corresponding to an Import operation.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Experimental
- Assembly: UnityEditor.CoreModule
public static ImportResultID LookupArtifact(ArtifactKey artifactKey)
Parameters
ArtifactKey specifying an artifact to look up.
Returns
Type | Description |
|---|---|
| ImportResultID | A unique identifier representing the artifact specified by artifactKey. |
Remarks
An invalid [[ImportResultID] is returned in the following circumstances:
- contains an invalid or unknown Asset GUID.
artifactKey - contains an invalid or unknown Importer type.
artifactKey - has not produced a result at this time. An async Produce operation may still be in progress for this
artifactKey.artifactKey
Additional Resources: AssetDatabaseExperimental.ProduceArtifact, AssetDatabaseExperimental.ProduceArtifactAsync.