Version: 2022.3

描述

Represents an enumeration property.

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. See Also: SerializedProperty, SerializedProperty.enumNames.