Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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 
 
PREVIOUS NEXT
Tagged: #disable #buttons #unity
ADD COMMENT
Topic
Name
3+5 =