title: How to get all the children of an instantiated Canvas Element Prefab
body: <p>I have instantiated a Scroll Rect Prefab inside a canvas and now I need to get all the children of that instantiated prefab and also the text components in each one of them.</p>
  
  <p>I failed to get them with the code below.
  <code>UIManager.uiManager.NewCanvasMenuCityPrefabs[Number]</code> is the reference to the instantiated canvas element prefab.</p>
  
  <pre><code>Transform[] Parent = UIManager.uiManager.NewCanvasMenuCityPrefabs[Number].transform.GetComponentsInChildren&lt; Transform &gt;();
  
  foreach (Transform Child in Parent)
  {
       print(Child);
  }
  </code></pre>
  
  <p>But still I couldn't get any of the children of the element.</p>