title: Unity c# - NullReferenceException: Object reference not set to an instance of an object
body: <p>Im having an <code>error</code> during <code>runtime</code> with my <code>image</code> and <code>text</code>. I have both objects created in my <code>hierarchy</code> named correctly but apparently my script cant find them. Why isn't what i have written not sufficient? All i get in the <code>error</code> is <code>Object reference</code> not set to an instance of an object, but i don't understand why i need to create an instance of this object when i have one in my hierarchy.
   I'm still relatively new to both unity and <code>c#</code> and couldn't find any real explanatory answer by searching and the unity tutorials weren't very helpful since I'm sure its just a basic question about <code>c#</code></p>
  
  <pre><code>private Text serverInfoText;
  private GameObject serverInfoImage;
  
  void Awake()
  {
      serverInfoImage = GameObject.Find ("ServerInfoImage");
      serverInfoImage.SetActive (false);
      serverInfoText = GameObject.Find("ServerInfoText").GetComponent&lt;Text&gt;();
  }
  </code></pre>