using UnityEngine.EventSystems; namespace CurvedUI { /// /// Fixes the issue where UI input would stop working in VR if the game window looses focus. /// public class CurvedUIEventSystem : EventSystem { public static CurvedUIEventSystem instance; protected override void Awake() { base.Awake(); instance = this; } protected override void OnApplicationFocus(bool hasFocus) { base.OnApplicationFocus(true); } } }