private void OnApplicationFocus(bool hasFocus) { #if UNITY_WSA && !UNITY_EDITOR if (CompatibilityChecker.isHololens2()) { if (!hasFocus) { Close(); } } #endif }