GameObject myEventSystem = GameObject.Find("EventSystem"); myEventSystem .GetComponent<UnityEngine.EventSystems.EventSystem>().SetSelectedGameObject(null);