title: How to reference an inactive GameObject in Unity3D?
body: <p>I'm trying to access an inactive gameobject that is the child of another gameobject, but I'm having trouble.</p>
  
  <p>Right now I'm using this line of code to try to access the inactive child gameobject and set it active: </p>
  
  <pre><code>go.GetComponentInChildren&lt;EnemyMover&gt;().gameObject.SetActive(true);
  </code></pre>
  
  <p>I am getting a null ref error. </p>
  
  <p>So how can I reference an inactive gameobject?</p>