Answers for "Unity button deselect"

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

Browse Popular Code Answers by Language