---
tags:
    - "Display, Resolution, Window, Monitor"
---

# Screen Set Resolution

[Screen](index.md) / **Screen Set Resolution** Width, Height, FullscreenMode

## Description

Executes the Set Resolution static method of the Screen class

## Parameters

| Name | Description |
| :--- | :---------- |
| Width |  |
| Height |  |
| Fullscreen Mode |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Screen Set Resolution")]
    [Category("Screen/Set Resolution", "Width, Height, FullscreenMode")]
    [Description("Executes the Set Resolution static method of the Screen class")]

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

    [Parameter("Width")]
    [Parameter("Height")]
    [Parameter("Fullscreen Mode")]

    [Serializable]
    public class GenInstructionScreen_SetResolution_3_IntWidth_IntHeight_FullScreenModeFullscreenMode : Instruction
    {
        [SerializeField] private GetInteger m_Width = new GetInteger();

        [SerializeField] private GetInteger m_Height = new GetInteger();

        [SerializeField] private FullScreenMode m_FullscreenMode = default;

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Screen");
            string method = TextUtils.ThemeAsKeyword("Set Resolution");
            return $"{className} {method} ({this.m_Width}, {this.m_Height}, {this.m_FullscreenMode})";
        }

        protected override Awaitable Run(Args args)
        {
            Screen.SetResolution(
                (int) this.m_Width.Get(args),
                (int) this.m_Height.Get(args),
                this.m_FullscreenMode
            );

            return Done;
        }
    }
}
```

