fullScreen
Enables full-screen mode for the application.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static bool fullScreen { get; set; }
Remarks
Use this property to toggle full-screen mode. The following example toggles between the application's current full-screen mode and windowed mode.
using UnityEngine;public class Example : MonoBehaviour{ void Start() { // Toggle fullscreen Screen.fullScreen = !Screen.fullScreen; }}
A full-screen switch doesn't happen immediately. The change takes effect when the current frame is finished.
Screen.fullScreenNotes:
- is read-only on iOS.
Screen.fullScreen - When Stage Manager is enabled on iPadOS, the remains true for the application built with full-screen display mode. The application maintains the full-screen resolution in supported orientations even when the Stage Manager scales the application.
Screen.fullScreen