title: UI prefab components go "missing" when I run the project more than once
body: <p>I have run into a problem when trying to instantiating UI elements so I can spawn them when needed.
  I use the following code in order the instantiate a piece of my UI and place on screen when needed: (2 different methods I have tried, I have no problem making the prefab being a child of the canvas)</p>
  
  <pre><code>UIHide = Instantiate(UIPopUp, new Vector3(0, 0, 0), Quaternion.identity) as GameObject;
  UIHide.transform.parent = gameObject.transform;
  //UIHide = Instantiate(UIPopUp) as GameObject;
  //transform.SetParent(this.gameObject.transform, false);
  </code></pre>
  
  <p>Now this is the problem, when I go to play the game and make the UI appear, nothing happens. The second time I go to play the game the following happens to the UI prefab.</p>
  
  <p><img src="https://i.stack.imgur.com/I9AF3.jpg" alt=""></p>
  
  <p>First image is the UI prefab in place, second is in game first time, third is the second play through when the components go missing and stay missing.
  Any help at all is much appreciated as I am completely stumped! I hope I provided enough info on the problem at hand!</p>