Version: 2023.1

InspectorNameAttribute

class in UnityEngine

/

继承自:PropertyAttribute

切换到手册

描述

对枚举值声明使用此属性可更改 Inspector 中显示的显示名称。

using UnityEngine;

public enum ModelImporterIndexFormat { Auto = 0, [InspectorName("16 bits")] UInt16 = 1, [InspectorName("32 bits")] UInt32 = 2, }

变量

displayName要在 Inspector 中显示的名称。

构造函数

InspectorNameAttribute指定枚举值的显示名称。

继承的成员

变量

order可选字段,用于指定多个 DecorationDrawer 应采用的绘制顺序。