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

AssetImporterEditor.InitializeExtraDataInstance

マニュアルに切り替える
protected void InitializeExtraDataInstance (Object extraData, int targetIndex);

パラメーター

extraDataA ScriptableObject instance of the type provided by AssetImporterEditor.extraDataType.
targetIndexThe corresponding Editor.targets index of the provided extraData.

説明

This method is called during the initialization process of the Editor, after Awake and before OnEnable.

If the AssetImporterEditor have the CanEditMultipleObjects attribute and more than one Importer is selected, this method will be called once for each extraDataTargets using targetIndex to find the corresponding Editor.targets Importer.

Note: Assembly reloading or external changes made to the inspected file in the Editor may trigger this method outside of the initialization loop. However, you should always reset your data in the given object when it gets called to make sure you stay up to date with the asset file.

See a usage example at AssetImporterEditor.extraDataType.

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