Skip to content

Commit cf5c439

Browse files
committed
fixed style warning
1 parent 43d18a4 commit cf5c439

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Core/Design/Editor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ public static void BeginGroup(float width, string style = "Box")
2323
_nameWidth = 160;
2424
_contentWidth = width - _nameWidth;
2525

26-
UnityEngine.GUILayout.BeginVertical(style);
26+
if (string.IsNullOrEmpty(style))
27+
UnityEngine.GUILayout.BeginVertical();
28+
else
29+
UnityEngine.GUILayout.BeginVertical(style);
2730
}
2831
public static void BeginHorizontal()
2932
{

0 commit comments

Comments
 (0)