---
tags:
    - "Display"
    - "Resolution"
    - "Window"
    - "Monitor"
    - "Fullscreen"
    - "Windowed"
    - "Borderless"
---

# Set Screen Full Screen Mode

[Screen](index.md) / **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

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

