# Create(in GameWindowCreationSettings)

> Creates a new window asynchronously with the specified settings.

## Definition

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

## Create(GameWindowCreationSettings)

```csharp
public static CreateWindowAsyncOperation Create(in GameWindowCreationSettings settings)
```

### Parameters

**** (\[GameWindowCreationSettings]\(/engine/6000.7/script-reference/unityengine/windowing/gamewindowcreationsettings)): The settings to use for creating the window.

### Returns

| Type                                                                                                              | Description                                                                                                                                                                                                                                                                                                                          |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [CreateWindowAsyncOperation](/engine/6000.7/script-reference/unityengine/windowing/createwindowasyncoperation.md) | A [CreateWindowAsyncOperation](/engine/6000.7/script-reference/unityengine/windowing/createwindowasyncoperation.md) that represents the asynchronous window creation operation. Use the operation to get the created [GameWindow](/engine/6000.7/script-reference/unityengine/windowing/gamewindow.md) once the operation completes. |

### Examples

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

public class CreateWindowExample : MonoBehaviour
{
    List<DisplayInfo> displayInfos = new List<DisplayInfo>();

    void Start()
    {
        DisplayInfo.GetLayout(displayInfos);

        var settings = new GameWindowCreationSettings(
            title: "Second Window",
            width: 600, 
            height: 400,
            position: new Vector2Int(0, 0),
            cameraDisplayIndex: 1,
            displayInfo: displayInfos[0],
            fullScreenMode: FullScreenMode.Windowed,
            resizable: false
        );

        var op = GameWindowManager.Create(settings);

        op.completed += (AsyncOperation o) => { 
            Debug.Log($"Window Created: {op.window.GetTitle()}");
        };
    }
}
```
