Skip to content

Commit 9d7d455

Browse files
committed
visual update
1 parent bfff610 commit 9d7d455

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Assets/Editor/Editor Windows/ScriptableObjectEditorWindow.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,18 @@ private void OnGUI()
206206
EditorGUILayout.EndHorizontal();
207207

208208
// table:
209-
EditorGUILayout.BeginHorizontal("box");
210209
if (OrientationVertical)
211210
{
211+
EditorGUILayout.BeginHorizontal();
212212
PutPropertiesForObject_V(configGroup);
213+
EditorGUILayout.EndHorizontal();
213214
}
214215
else
215216
{
217+
EditorGUILayout.BeginVertical("box");
216218
PutPropertiesForObject_H(configGroup);
219+
EditorGUILayout.EndVertical();
217220
}
218-
EditorGUILayout.EndHorizontal();
219221
}
220222
}
221223
EditorGUILayout.EndScrollView();
@@ -483,8 +485,6 @@ private void PutPropertiesForObject_H<T>(List<T> Configs) where T : ScriptableOb
483485
{
484486
try
485487
{
486-
EditorGUILayout.BeginVertical();
487-
488488
// property names on horizontal line:
489489
EditorGUILayout.BeginHorizontal();
490490
try
@@ -561,7 +561,6 @@ private void PutPropertiesForObject_H<T>(List<T> Configs) where T : ScriptableOb
561561
EditorGUILayout.EndHorizontal();
562562
GUILayout.Space(PropertySpace);
563563
}
564-
EditorGUILayout.EndVertical();
565564
}
566565
catch
567566
{

preview.png

-1.84 KB
Loading

0 commit comments

Comments
 (0)