This repository was archived by the owner on May 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Assets/SO Architecture/Editor/Drawers Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
[ CustomPropertyDrawer ( typeof ( DeveloperDescription ) ) ]
7
7
public class DeveloperDescriptionDrawer : PropertyDrawer
8
8
{
9
- private SerializedProperty property ;
10
-
9
+ private SerializedProperty _property ;
10
+
11
11
public override void OnGUI ( Rect position , SerializedProperty property , GUIContent label )
12
12
{
13
- this . property = property ;
14
-
13
+ this . _property = property ;
14
+
15
15
DrawTitle ( ) ;
16
16
DrawTextArea ( ) ;
17
17
}
@@ -21,8 +21,8 @@ private void DrawTitle()
21
21
}
22
22
private void DrawTextArea ( )
23
23
{
24
- SerializedProperty stringValue = property . FindPropertyRelative ( "_value" ) ;
25
-
24
+ SerializedProperty stringValue = _property . FindPropertyRelative ( "_value" ) ;
25
+
26
26
Vector2 fieldSize = Styles . TextAreaStyle . CalcSize ( new GUIContent ( stringValue . stringValue ) ) ;
27
27
Rect textAreaRect = GUILayoutUtility . GetRect ( fieldSize . x , fieldSize . y ) ;
28
28
@@ -56,11 +56,11 @@ private void HandleInput(Rect textAreaRect)
56
56
private void RemoveFocus ( )
57
57
{
58
58
GUI . FocusControl ( null ) ;
59
- Repaint ( ) ;
59
+ // Repaint();
60
60
}
61
61
private void Repaint ( )
62
62
{
63
- EditorUtility . SetDirty ( property . serializedObject . targetObject ) ;
63
+ EditorUtility . SetDirty ( _property . serializedObject . targetObject ) ;
64
64
}
65
65
private static class Styles
66
66
{
You can’t perform that action at this time.
0 commit comments