Skip to content

Commit 2c9da68

Browse files
committed
fix error on enter playmode
1 parent 539a7b7 commit 2c9da68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Editor/EditorCore/EditorGUIUtility.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ static class EditorGUIUtility
1212
{
1313
internal static class Styles
1414
{
15-
public static GUIStyle command = "command";
15+
private static GUIStyle s_Command;
16+
public static GUIStyle command => s_Command ??= "command";
1617
public static GUIContent[] selectModeIcons;
1718

1819
static Texture2D s_ObjectIcon;

0 commit comments

Comments
 (0)