Answers for "how to deselect a button through code unity"

1

how to deselect a button through code unity

GameObject myEventSystem = GameObject.Find("EventSystem");
 myEventSystem .GetComponent<UnityEngine.EventSystems.EventSystem>().SetSelectedGameObject(null);
Posted by: Guest on April-17-2021

Code answers related to "how to deselect a button through code unity"

Browse Popular Code Answers by Language