Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsVisible()

Checks if the window is visible.
Read time 1 minuteLast updated 13 days ago

Definition

public bool IsVisible()

Returns

Type

Description

boolTrue 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 to show or hide the window.

Examples

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}"); }}