ドキュメント

Unity Engine

Unity Engine

ArtifactKey

An ArtifactKey is used for specifying an artifact to lookup or produce.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public struct ArtifactKey

Remarks

One example of producing an artifact is to run and importer on a specific asset. The importer is specified by type (e.g. typeof(MyImporter) and the asset by its guid. From these two you can create an ArtifactKey and use it to ask the assetdatabase to produce the artifact. You can also create an ArtifactKey from only a guid. In that case the AssetDatabase will automatically select the importer from the list of valid importers.

Fields

Value

Description

guidThe guid specifying the asset in question.

Constructors

Constructor

Description

ArtifactKey(UnityEngine.GUID)Construct an ArtifactKey.
ArtifactKey(UnityEngine.GUID,System.Type)Construct an ArtifactKey.

Properties

Property

Description

importerTypeThe managed type of the importer to use for producing the artifact.
isValidReturns true is the hash value is valid. (Read Only)