How can hide game object in unity
Loading
How can hide game object in unity
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Uday DodiyaPosted Nov 11, 2022, 6:25 AM
To make a gameobject invisible you can disable its renderer component. If you dont need the object in the scene right now (including script functionality) you may also just disable the entire gameobject.
Rajanikant HawaldarPosted Nov 11, 2022, 6:09 AM
https://www.c-sharpcorner.com/forums/in-unity-3d-how-can-you-hide-gameobject
NitinPosted Nov 11, 2022, 4:24 AM
Hide button unity Code
GameObject button;
void Start() {
button = GameObject.Find("Button");
}
void ButtonClicked() {
button.SetActive(false);
}