Skip to content

Commit ee69f58

Browse files
committed
upd README
1 parent 57c4dbd commit ee69f58

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Code/Runtime/OlegHcp/NodeBased/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class ExampleNodeDrawer : NodeDrawer
6969
{
7070
protected override float GetHeight(SerializedProperty property)
7171
{
72-
return base.GetHeight(property) * 2f;
72+
return base.GetHeight(property) * 2f + EditorGUIUtility.standardVerticalSpacing;
7373
}
7474

7575
protected override Color GetHeaderColor(bool rootNode)
@@ -79,7 +79,6 @@ public class ExampleNodeDrawer : NodeDrawer
7979

8080
protected override void OnGui(SerializedProperty property, float width)
8181
{
82-
EditorGUIUtility.labelWidth = width * 0.5f;
8382
EditorGUILayout.LabelField("Overridden", "Qwerty");
8483
GUILayout.Button("Button");
8584
}

_images/NodeBased5.png

390 Bytes
Loading

0 commit comments

Comments
 (0)