diff --git a/Assets/FullInspector2/Modules/Common/Editor/CommonPropertyEditors.cs b/Assets/FullInspector2/Modules/Common/Editor/CommonPropertyEditors.cs index f8e254a..60d8527 100644 --- a/Assets/FullInspector2/Modules/Common/Editor/CommonPropertyEditors.cs +++ b/Assets/FullInspector2/Modules/Common/Editor/CommonPropertyEditors.cs @@ -236,6 +236,17 @@ public override float GetElementHeight(GUIContent label, Color element, fiGraphM } } + [CustomPropertyEditor(typeof(Color32))] + public class Color32PropertyEditor : PropertyEditor { + public override Color32 Edit(Rect region, GUIContent label, Color32 element, fiGraphMetadata metadata) { + return EditorGUI.ColorField(region, label, element); + } + + public override float GetElementHeight(GUIContent label, Color32 element, fiGraphMetadata metadata) { + return EditorStyles.colorField.CalcHeight(label, 1000); + } + } + [CustomPropertyEditor(typeof(AnimationCurve))] public class AnimationCurvePropertyEditor : PropertyEditor { public override AnimationCurve Edit(Rect region, GUIContent label, AnimationCurve element, fiGraphMetadata metadata) {