# ResolutionChangedEventArgs

> Arguments for resolution changed event of a GameWindow.

## Definition

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

```csharp
public struct ResolutionChangedEventArgs
```

## Examples

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

public class WindowingTest : MonoBehaviour
{
    GameWindow mainWindow;

    private void Awake()
    {
        mainWindow = GameWindow.Main;
    }

    private void OnEnable()
    {
        // Register the callback
        mainWindow.RegisterResolutionChangedCallback(WindowResizeCallback);
    }

    private void OnDisable()
    {
        // Unregister the callback
        mainWindow.UnregisterResolutionChangedCallback(WindowResizeCallback);
    }

    private void WindowResizeCallback(GameWindow window, ResolutionChangedEventArgs args)
    {
        Debug.Log($"Main window resized to: {args.width}x{args.height} : {args.refreshRate.value}Hz");
        switch (args.fullScreenMode)
        {
            case FullScreenMode.FullScreenWindow:
                Debug.Log("Main window is fullscreen.");
                break;
            case FullScreenMode.Windowed:
                Debug.Log("Main window is windowed.");
                break;
        }
    }
}
```

## Properties

| Property                                                                                                             | Description                                                    |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [fullScreenMode](/engine/6000.7/script-reference/unityengine/windowing/resolutionchangedeventargs/fullscreenmode.md) | The fullscreen mode of the window after the resolution change. |
| [height](/engine/6000.7/script-reference/unityengine/windowing/resolutionchangedeventargs/height.md)                 | The new height of the window.                                  |
| [refreshRate](/engine/6000.7/script-reference/unityengine/windowing/resolutionchangedeventargs/refreshrate.md)       | The new refresh rate of the window.                            |
| [width](/engine/6000.7/script-reference/unityengine/windowing/resolutionchangedeventargs/width.md)                   | The new width of the window.                                   |
