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

Commit 65da890

Browse files
Preventing serialization of some fields that don't change
1 parent f1daf3e commit 65da890

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ namespace GitHub.Unity
1111
[Serializable]
1212
public class Tree
1313
{
14-
[SerializeField] public float ItemHeight = EditorGUIUtility.singleLineHeight;
15-
[SerializeField] public float ItemSpacing = EditorGUIUtility.standardVerticalSpacing;
14+
public static float ItemHeight { get { return EditorGUIUtility.singleLineHeight; } }
15+
public static float ItemSpacing { get { return EditorGUIUtility.standardVerticalSpacing; } }
16+
1617
[SerializeField] public Rect Margin = new Rect();
1718
[SerializeField] public Rect Padding = new Rect();
1819

0 commit comments

Comments
 (0)