Sets the full-screen mode. See the description of each mode for information on platform compatibility.
ExclusiveFullScreen | Windows platforms only. Sets your application so it has sole full-screen use of a display. Unlike FullScreenMode.FullScreenWindow, this mode changes the operating system resolution of the display to match the application's chosen resolution. On platforms other than Windows, this mode falls back to FullScreenMode.FullScreenWindow. |
FullScreenWindow | All platforms. Sets your application window to the full-screen native display resolution, covering the whole screen. This full-screen mode is also known as 'borderless full screen'. Unity renders your application at the resolution set by a script, or the native display resolution if no resolution is set, and scales your application to fill the window. Unity adds black bars ('letterboxing') to the rendered output to match the display aspect ratio, to prevent content stretching. The operating system's overlay UI, such as input method editor (IME) window, displays on top of the full-screen window. |
MaximizedWindow | Windows and macOS platforms only. Sets your application window to the operating system's definition of maximized. On Windows, it is a full-screen window with a title bar. On macOS, it is a full-screen window with a hidden menu bar and dock. On other platforms, this mode falls back to FullScreenMode.FullScreenWindow. |
Windowed | Desktop platforms only. Sets your application to a standard, movable window that's not full screen. The size of the window depends on your application's resolution. |