bool True if this window is valid and not destroyed.
Returns true if this window is valid and not destroyed.
using UnityEngine; using UnityEngine.Windowing;
public class IsWindowValidExample : MonoBehaviour { void Start() { var window = GameWindow.Main; bool valid = window.IsValid(); Debug.Log($"Is window valid: {valid}"); } }