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

ScriptedImporterAttribute.version

切换到手册
public int version ;

描述

导入器版本号,导入层用它来检测导入器新版本,并在发生此类事件时触发重新导入,从而应用对脚本化导入器的最新更改。

using UnityEngine;
using UnityEditor.Experimental.AssetImporters;

[ScriptedImporter(1, "sphere")] public class SphereImporter : ScriptedImporter { public override void OnImportAsset(AssetImportContext ctx) { // ... } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961