Skip to content

Commit

Permalink
Add note to restart game when changing to windowed on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Oct 30, 2022
1 parent dc53934 commit ed983fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MOD.Scripts.UI/MODMenuResolution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ public void OnBeforeMenuVisible()
public void OnGUI()
{
Label($"Resolution Settings (Current: {Screen.width}x{Screen.height})");

// I noticed a bug on Linux where going Windowed sometimes doesn't let you change window size,
// probably due res settings Playerprefs that Unity reads on startup.
// Restarting the game after changing settings fixes this.
if(Application.platform == RuntimePlatform.LinuxPlayer)
{
Label($"NOTE: You may need to restart the game after changing to Windowed!");
}

{
GUILayout.BeginHorizontal();
if (Button(new GUIContent("480p", "Set resolution to 853 x 480"))) { SetAndSaveResolution(480); }
Expand Down

0 comments on commit ed983fa

Please sign in to comment.