Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

AssetDatabaseExperimental.LookupArtifact

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static Experimental.ImportResultID LookupArtifact(Experimental.ArtifactKey artifactKey);

Parameters

Parameter Description
artifactKey ArtifactKey specifying an artifact to look up.

Returns

ImportResultID A unique identifier representing the artifact specified by artifactKey.

Description

Returns an ImportResultID corresponding to an Import operation.

An invalid [[ImportResultID] is returned in the following circumstances:

  1. artifactKey contains an invalid or unknown Asset GUID.
  2. artifactKey contains an invalid or unknown Importer type.
  3. artifactKey has not produced a result at this time. An async Produce operation may still be in progress for this artifactKey.

Additional resources: AssetDatabaseExperimental.ProduceArtifact, AssetDatabaseExperimental.ProduceArtifactAsync.