Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit e9decca

Browse files
Fixed improper local field name
1 parent 9f66327 commit e9decca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Assets/SO Architecture/Editor/Drawers/DeveloperDescriptionDrawer.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
[CustomPropertyDrawer(typeof(DeveloperDescription))]
77
public class DeveloperDescriptionDrawer : PropertyDrawer
88
{
9-
private SerializedProperty property;
10-
9+
private SerializedProperty _property;
10+
1111
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
1212
{
13-
this.property = property;
14-
13+
this._property = property;
14+
1515
DrawTitle();
1616
DrawTextArea();
1717
}
@@ -21,8 +21,8 @@ private void DrawTitle()
2121
}
2222
private void DrawTextArea()
2323
{
24-
SerializedProperty stringValue = property.FindPropertyRelative("_value");
25-
24+
SerializedProperty stringValue = _property.FindPropertyRelative("_value");
25+
2626
Vector2 fieldSize = Styles.TextAreaStyle.CalcSize(new GUIContent(stringValue.stringValue));
2727
Rect textAreaRect = GUILayoutUtility.GetRect(fieldSize.x, fieldSize.y);
2828

@@ -56,11 +56,11 @@ private void HandleInput(Rect textAreaRect)
5656
private void RemoveFocus()
5757
{
5858
GUI.FocusControl(null);
59-
Repaint();
59+
//Repaint();
6060
}
6161
private void Repaint()
6262
{
63-
EditorUtility.SetDirty(property.serializedObject.targetObject);
63+
EditorUtility.SetDirty(_property.serializedObject.targetObject);
6464
}
6565
private static class Styles
6666
{

0 commit comments

Comments
 (0)