Skip to content

Commit 9b4b632

Browse files
committed
Added resolution command.
1 parent 68135fc commit 9b4b632

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Runtime/DevConsoleMono.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -892,10 +892,7 @@ private void InitBuiltInCommands()
892892
Screen.fullScreen = b;
893893
LogSuccess($"{(b ? "Enabled" : "Disabled")} fullscreen mode.");
894894
},
895-
() =>
896-
{
897-
LogVariable("Fullscreen", Screen.fullScreen);
898-
}
895+
() => LogVariable("Fullscreen", Screen.fullScreen)
899896
));
900897

901898
AddCommand(Command.Create<int>(
@@ -914,10 +911,14 @@ private void InitBuiltInCommands()
914911
QualitySettings.vSyncCount = i;
915912
LogSuccess($"VSyncCount set to {i}.");
916913
},
917-
() =>
918-
{
919-
LogVariable("VSyncCount", QualitySettings.vSyncCount);
920-
}
914+
() => LogVariable("VSyncCount", QualitySettings.vSyncCount)
915+
));
916+
917+
AddCommand(Command.Create(
918+
"resolution",
919+
"",
920+
"Display the current screen resolution",
921+
() => LogVariable("Resolution", Screen.currentResolution)
921922
));
922923

923924
#endregion

0 commit comments

Comments
 (0)