If my players only use pointer based input devices (mouse or touch) I don't need the Selectables feature of Unity GUI. Is there a way to disable it? I currently just have an Update method where, if there is a selected object, I will remove it. It does the job, but is not very nice.
void Update()
{
if (EventSystem.current?.currentSelectedGameObject != null)
EventSystem.current.SetSelectedGameObject(null);
}
↧