# GameWindowExtensions

> Provides extension methods for GameWindow specific to EmbeddedLinux (Wayland) platforms.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Windowing.EmbeddedLinux](/engine/6000.7/script-reference/unityengine/windowing/embeddedlinux.md)
* **Assembly:** UnityEngine.EmbeddedLinuxWindowingModule

```csharp
public static class GameWindowExtensions
```

## Examples

```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Windowing;
using UnityEngine.Windowing.EmbeddedLinux;

public class WindowingInputRegionsExample : MonoBehaviour
{
    void Start()
    {
        Region region = new Region()
        {
            // rectangles to include for input
            inclusions = new List<RectInt>() { new RectInt(0, 0, 300, 300), new RectInt(250, 250, 150, 150) },
            // rectangles to exclude from input
            exclusions = new List<RectInt>() { new RectInt(100, 0, 200, 200), new RectInt(250, 250, 50, 50) }
        };

        // Set the input region for the main game window using the extension method
        var op = GameWindow.Main.SetInputRegion(region);

        op.completed += _ => {
            Debug.Log($"Input regions set for {GameWindow.Main.GetTitle()}");
        };
    }
}
```

## Static Methods

| Method                                                                                                                       | Description                                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [SetInputRegion](/engine/6000.7/script-reference/unityengine/windowing/embeddedlinux/gamewindowextensions/setinputregion.md) | Sets the input region for the specified window. This is an extension method for [GameWindow](/engine/6000.7/script-reference/unityengine/windowing/gamewindow.md). |
