Skip to content

Commit 23b1ca9

Browse files
Update RawReferenceDrawer DrawLine to include indent
EditorGUI.indent is internal, but equals EditorGUI.indentLevel * 15
1 parent 6af383e commit 23b1ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Editor/Drawers/RawReferenceDrawer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ private void DrawLine(Rect position)
7272
{
7373
Rect line = new Rect(position)
7474
{
75-
width = 4,
75+
width = 5,
7676
yMin = position.yMin + EditorGUIUtility.singleLineHeight,
77-
x = position.x + 2f
77+
x = position.x + EditorGUI.indentLevel * 15 - 9
7878
};
7979
EditorGUI.DrawRect(line, Styles.LineColor);
8080
}

0 commit comments

Comments
 (0)