文档

Unity Engine

Unity Engine

Enum

Represents an enumeration property.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Enum = 7

Remarks

SerializedProperty.numericType can be used to determine the type of the constant values of the enum used to access the enum type (typically int). Use SerializedProperty.intValue to access the numeric value, unless the enum type is uint, in which case SerializedProperty.longValue should be used. Additional Resources: SerializedProperty, SerializedProperty.enumNames.