how to to show hide object via script unity code example
Example: how to hide and show object in unity script
GameObject cat;
cat.SetActive(false); // false to hide, true to show
GameObject cat;
cat.SetActive(false); // false to hide, true to show