From 21e186f75b504d832d9c7bef0456edd7d5d3155e Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 8 Sep 2021 10:52:35 +0800 Subject: +behavior design --- .../Editor/StyledInspector/StyledIndentDrawer.cs | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs (limited to 'Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs') diff --git a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs b/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs deleted file mode 100644 index 1f1d2e40..00000000 --- a/Assets/BOXOPHOBIC/Utils/Editor/StyledInspector/StyledIndentDrawer.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Cristian Pop - https://boxophobic.com/ - -using UnityEngine; -using UnityEditor; - -namespace Boxophobic.StyledGUI -{ - [CustomPropertyDrawer(typeof(StyledIndent))] - public class StyledIndentAttributeDrawer : PropertyDrawer - { - StyledIndent a; - - public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) - { - a = (StyledIndent)attribute; - - EditorGUI.indentLevel = a.indent; - } - - public override float GetPropertyHeight(SerializedProperty property, GUIContent label) - { - return -2; - } - } -} -- cgit v1.1-26-g67d0