Answers for "hide ui button unity"

C#
1

hide button unity

GameObject button;

void Start() {
    button = GameObject.Find("Button");
}

void ButtonClicked() {
    button.SetActive(false);   
}
Posted by: Guest on April-06-2021
2

how to hide ui elements unity

GameObject.Find("the object name").SetActive(false);
Posted by: Guest on March-23-2020

C# Answers by Framework

Browse Popular Code Answers by Language