# SetTitle(string)

> Sets the title of the window.

## Definition

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

```csharp
public AsyncOperation SetTitle(string title)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The new title for the window.

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

### Examples

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

public class SetWindowTitleExample : MonoBehaviour
{
    AsyncOperation asyncOperation = null;

    void Start()
    {
        var window = GameWindow.Main;
        asyncOperation = window.SetTitle("My Game Window");
    }

    void Update()
    {
        if (asyncOperation != null && asyncOperation.isDone)
        {
            Debug.Log("Window title set successfully.");
            asyncOperation = null;
        }
    }
}
```
