unity make object disapear code example
Example 1: make an object disappear from a c# script unity
public GameObject ObjectToDisappear;
void Start()
{
ObjectToDisappear.GetComponent<Renderer>().enabled = false;
}
Example 2: how to make a block disappear in unity
GetComponent<Renderer>.enabled = false;