Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f1daf3e

Browse files
/branches-view-rollup:
Using the Styles.TreeIndentation constant The value never changes so no need to make it serializable
1 parent 1410a01 commit f1daf3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class Tree
1313
{
1414
[SerializeField] public float ItemHeight = EditorGUIUtility.singleLineHeight;
1515
[SerializeField] public float ItemSpacing = EditorGUIUtility.standardVerticalSpacing;
16-
[SerializeField] public float Indentation = 12f;
1716
[SerializeField] public Rect Margin = new Rect();
1817
[SerializeField] public Rect Padding = new Rect();
1918

@@ -169,7 +168,7 @@ public Rect Render(Rect rect, Vector2 scroll, Action<TreeNode> singleClick = nul
169168

170169
if (visible)
171170
{
172-
var changed = node.Render(rect, Indentation, selectedNode == node, FolderStyle, TreeNodeStyle, ActiveTreeNodeStyle);
171+
var changed = node.Render(rect, Styles.TreeIndentation, selectedNode == node, FolderStyle, TreeNodeStyle, ActiveTreeNodeStyle);
173172

174173
if (node.IsFolder && changed)
175174
{

0 commit comments

Comments
 (0)