Skip to content

Commit

Permalink
Fix focus GameView
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Apr 29, 2024
1 parent fad6d14 commit 15ec00e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RuntimeInternals/GameViewControlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public static void Focus()
#if UNITY_EDITOR
#if UNITY_2022_2_OR_NEWER
PlayModeWindow.SetViewType(PlayModeWindow.PlayModeViewTypes.GameView);
#endif
#else
GameViewWrapper.GetWindow();
#endif
#endif
}

Expand Down

0 comments on commit 15ec00e

Please sign in to comment.