Version: 2022.3
Experimental: this API is experimental and might be changed or removed in the future.

ArtifactKey

struct in UnityEditor.Experimental

切换到手册

描述

An ArtifactKey is used for specifying an artifact to lookup or produce.

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.

变量

guidThe guid specifying the asset in question.
importerTypeThe managed type of the importer to use for producing the artifact.
isValidReturns true is the hash value is valid. (Read Only)

构造函数

ArtifactKeyConstruct an ArtifactKey.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961