How to make Alt-Tab use the native screen resolution

In the Standalone PC Player, if the window is small and you hit Alt-Tab, it stretches the game window instead of using the native resolution of the monitor.

I know you can disable Alt-Tab with “Allow Fullscreen Switch” player setting but Alt-Tab is a nice hotkey to have. Is there a way to catch the Alt-Tab in script and manually code what it does?

Are you talking about Alt+Enter?
Alt+Enter is fullscreen switch, Alt+Tab is switching to last used program.

You could definitely catch it with something like this:

if(Input.GetKeyDown(KeyCode.Alt*) && Input.GetKeyDown(KeyCode.Return))

  • not sure if “alt” is the actual keycode, but you can look that up.