# GetTitle()

> Gets the title of the window.

## Definition

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

```csharp
public string GetTitle()
```

### Returns

| Type                                                           | Description                          |
| -------------------------------------------------------------- | ------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The title of the window as a string. |

### Examples

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

public class WindowTitleExample : MonoBehaviour
{
    void Start()
    {
        var window = GameWindow.Main;
        string title = window.GetTitle();
        Debug.Log($"Window title: {title}");
    }
}
```
