Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Set Screen Full Screen Mode#

Screen / Set Screen Full Screen Mode

Description#

Changes how the game window fills the display, keeping its resolution

Parameters#

Name Description
Full Screen Mode Exclusive takes over the display, Full Screen Window is borderless, Maximized Window and Windowed keep a window

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Set Screen Full Screen Mode")]
    [Category("Screen/Full Screen Mode")]
    [Description("Changes how the game window fills the display, keeping its resolution")]

    [Image(typeof(IconScreen), ColorTheme.Type.TextLight)]
    [Keywords("Display", "Resolution", "Window", "Monitor", "Fullscreen", "Windowed", "Borderless")]

    [Parameter("Full Screen Mode", "Exclusive takes over the display, Full Screen Window is borderless, Maximized Window and Windowed keep a window")]

    [Serializable]
    public class InstructionScreenSetFullScreenMode : Instruction
    {
        [SerializeField] private FullScreenMode m_FullScreenMode = FullScreenMode.FullScreenWindow;

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Screen");
            string member = TextUtils.ThemeAsKeyword("Full Screen Mode");
            return $"{className} {member} = {this.m_FullScreenMode}";
        }

        protected override Awaitable Run(Args args)
        {
            Screen.fullScreenMode = this.m_FullScreenMode;
            return Done;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.