Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to deselect a button through code unity

 GameObject myEventSystem = GameObject.Find("EventSystem");
 myEventSystem .GetComponent<UnityEngine.EventSystems.EventSystem>().SetSelectedGameObject(null);
 
PREVIOUS NEXT
Tagged: #deselect #button #code #unity
ADD COMMENT
Topic
Name
1+7 =