Options for the application's full-screen mode, such as windowed or exclusive full-screen. For information on platform compatibility, refer to the description of each mode.
Use this enum with Screen.fullScreenMode to query or change the application's full-screen mode at runtime. To set the default mode that the Player uses at startup, use PlayerSettings.fullScreenMode, or PlayerSettings.Android.fullscreenMode on Android.
The following example sets the application's full-screen mode at runtime from a MonoBehaviour component attached to an active GameObject in the scene. Unity applies the new mode at the end of the current frame.
Additional resources: Screen.fullScreenMode, PlayerSettings.fullScreenMode, PlayerSettings.Android.fullscreenMode.
using UnityEngine;
public class FullScreenModeExample : MonoBehaviour { void Start() { // Switch to borderless full-screen window mode. Screen.fullScreenMode = FullScreenMode.FullScreenWindow; } }
| Property | Description |
|---|---|
| ExclusiveFullScreen | Windows platforms only. Sets your application so it has sole full-screen use of a display. |
| FullScreenWindow | All platforms. Sets your application window to the full-screen native display resolution, covering the whole screen. |
| MaximizedWindow | Windows and macOS platforms only. Sets your application window to the operating system's definition of maximized. |
| Windowed | Desktop platforms only. Sets your application to a standard, movable window that's not full screen. |