title: Instantiating a image as a child of a canvas in Unity 5.3
body: <p>I'm trying to instantiate an Image as a child of a canvas element.</p>
  
  <p>This code is attached to the Unity Canvas that i want to have as the parent.</p>
  
  <pre><code> Image Pokal = GameObject.Instantiate(Resources.Load("Pokal")) as Image;
  
      if (Pokal != null)
          Pokal.gameObject.GetComponent&lt;RectTransform&gt;().parent = gameObject.transform;
  </code></pre>
  
  <p>I want my "Pokal" to become a  child of the UI Canvas element. How do i do this? The prefab is added to the scene but i can't figure out how to make it a child of the Canvas Element.</p>