# SetFullScreenMode(FullScreenMode)

> Sets the full-screen mode of the window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Windowing](/engine/6000.7/script-reference/unityengine/windowing.md)
* **Assembly:** UnityEngine.WindowingModule

```csharp
public AsyncOperation SetFullScreenMode(FullScreenMode fullScreenMode)
```

### Parameters

**** (\[FullScreenMode]\(/engine/6000.7/script-reference/unityengine/fullscreenmode)): The new [FullScreenMode](/engine/6000.7/script-reference/unityengine/fullscreenmode.md) for the window.

### Returns

| Type                                                                            | Description                                                                                                                    |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [AsyncOperation](/engine/6000.7/script-reference/unityengine/asyncoperation.md) | An [AsyncOperation](/engine/6000.7/script-reference/unityengine/asyncoperation.md) that represents the asynchronous operation. |

### Remarks

The window keeps its current resolution, so only the mode changes. A window that becomes full-screen fills the display it is on. Use [GameWindow.GetFullScreenMode](/engine/6000.7/script-reference/unityengine/windowing/gamewindow/getfullscreenmode.md) to query the current value, or [GameWindow.SetResolution](/engine/6000.7/script-reference/unityengine/windowing/gamewindow/setresolution.md) to change the resolution and the mode together.

### Examples

```csharp
using UnityEngine;
using UnityEngine.Windowing;

public class SetFullScreenModeExample : MonoBehaviour
{
    void Start()
    {
        var window = GameWindow.Main;
        var op = window.SetFullScreenMode(FullScreenMode.FullScreenWindow);

        op.completed += (AsyncOperation o) =>
        {
            // Triggers when the full-screen mode change is complete
            Debug.Log($"Full-screen mode set to: {window.GetFullScreenMode()}");
        };
    }
}
```
