# MoveMainWindowTo(in DisplayInfo, Vector2Int)

> The Device Simulator doesn't simulate this method.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Device](/engine/6000.6/script-reference/unityengine/device.md)
* **Assembly:** UnityEngine.CoreModule

## MoveMainWindowTo(DisplayInfo, Vector2Int)

```csharp
public static AsyncOperation MoveMainWindowTo(in DisplayInfo display, Vector2Int position)
```

### Parameters

**** (\[DisplayInfo]\(/engine/6000.6/script-reference/unityengine/displayinfo)): The target display where the window should move to.**** (\[Vector2Int]\(/engine/6000.6/script-reference/unityengine/vector2int)): The position the window moves to. Relative to the top left corner of the specified display in pixels.

### Returns

| Type                                                                            | Description                                               |
| ------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [AsyncOperation](/engine/6000.6/script-reference/unityengine/asyncoperation.md) | Returns AsyncOperation that represents moving the window. |
