IsVisible()
Checks if the window is visible.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Windowing
- Assembly: UnityEngine.WindowingModule
public bool IsVisible()
Returns
Type | Description |
|---|---|
| bool | 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 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}"); }}