# SetIsResizable(bool)

> Sets whether the window can be resized manually.

## Definition

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

```csharp
public AsyncOperation SetIsResizable(bool isResizable)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): True to allow the window to be resized manually, false to prevent it.

### 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

This only controls manual resizing through the windowing system. You can always resize the window from a script with [GameWindow.SetResolution](/engine/6000.7/script-reference/unityengine/windowing/gamewindow/setresolution.md). Use [GameWindow.IsResizable](/engine/6000.7/script-reference/unityengine/windowing/gamewindow/isresizable.md) to query the current value.

This method has no effect on QNX, where the platform doesn't support changing whether a window is resizable, or on a full-screen window on any platform. In both cases the returned operation still completes successfully, but the value that [GameWindow.IsResizable](/engine/6000.7/script-reference/unityengine/windowing/gamewindow/isresizable.md) reports doesn't change.

### Examples

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

public class SetWindowResizableExample : MonoBehaviour
{
    void Start()
    {
        var window = GameWindow.Main;
        var op = window.SetIsResizable(true);

        op.completed += (AsyncOperation o) =>
        {
            // Triggers when the resizability change is complete
            Debug.Log($"Window resizability set to: {window.IsResizable()}");
        };
    }
}
```
