how to disable buttons in unity
Button.interactable = false; // Uses Disabled Color And Cant Click It
Button.enabled = false; // Does Not Use Disabled Color And Cant Click It
Button.gameObject.SetActive(false); // Removes It From UI Entirely
how to disable buttons in unity
Button.interactable = false; // Uses Disabled Color And Cant Click It
Button.enabled = false; // Does Not Use Disabled Color And Cant Click It
Button.gameObject.SetActive(false); // Removes It From UI Entirely
how to deselect a button through code unity
GameObject myEventSystem = GameObject.Find("EventSystem");
myEventSystem .GetComponent<UnityEngine.EventSystems.EventSystem>().SetSelectedGameObject(null);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us