Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FullScreenMode

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.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum FullScreenMode

Remarks

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.

Examples

using UnityEngine;public class FullScreenModeExample : MonoBehaviour{ void Start() { // Switch to borderless full-screen window mode. Screen.fullScreenMode = FullScreenMode.FullScreenWindow; }}

Fields

Value

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.