# IsVisible()

> Checks if the window is visible.

## Definition

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

```csharp
public bool IsVisible()
```

### Returns

| Type                                                          | Description                                     |
| ------------------------------------------------------------- | ----------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the window is visible, false otherwise. |

### Remarks

A window is visible when the windowing system displays it. A visible window can still be fully covered by another window. Use [GameWindow.SetIsVisible](/engine/6000.7/script-reference/unityengine/windowing/gamewindow/setisvisible.md) to show or hide the window.

### Examples

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

public class IsWindowVisibleExample : MonoBehaviour
{
    void Start()
    {
        var window = GameWindow.Main;
        bool visible = window.IsVisible();
        Debug.Log($"Is window visible: {visible}");
    }
}
```
