기술 자료

Unity Engine

Unity Engine

IsVisible()

Checks if the window is visible.
읽는 시간 1분최근 업데이트: 한 달 전

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