I have a game object that at the beginning of the game is disabled. Then I want to enable it later via script. So far I have tried to use the following code:
GameObject.Find("name").SetActive (true); The problem is that as the game object at the beginning is disabled when I do
GameObject.Find("name") I get null. So I don't know how to activate it. It's a canvas.
GameObject? Could you just disable one of its components instead, such as aRenderer,Rigidbody, and/orCollider?