示例#1
0
        public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
        {
            base.GetPropertyHeight(property, label);

            enumValue = property.GetValue<IEnum>();
            enumValues = enumValue.GetValues();
            enumNames = enumValue.GetNames().Convert(name => name.Replace('_', '/'));
            isFlag = enumValue is IEnumFlag;

            return 16f;
        }
示例#2
0
        public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
        {
            base.GetPropertyHeight(property, label);

            enumValue  = property.GetValue <IEnum>();
            enumValues = enumValue.GetValues();
            enumNames  = enumValue.GetNames().Convert(name => name.Replace('_', '/'));
            isFlag     = enumValue is IEnumFlag;

            return(16f);
        }