Unity Enable/ Disable Button Code Example


Example: 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

Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy