Version: Unity 6.0 (6000.0)
LanguageEnglish
  • C#

FullScreenMode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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; } }

Properties

Property Description
ExclusiveFullScreenWindows platforms only. Sets your application so it has sole full-screen use of a display.
FullScreenWindowAll platforms. Sets your application window to the full-screen native display resolution, covering the whole screen.
MaximizedWindowWindows and macOS platforms only. Sets your application window to the operating system's definition of maximized.
WindowedDesktop platforms only. Sets your application to a standard, movable window that's not full screen.