title: Create buttons from folders in the resource folder iOS Unity
body: <p>I'm trying to figure out how I get all my folders in the resources folder as buttons in iOS.
  I got it working on windows with this code:</p>
  
  <pre><code>string path = Application.dataPath + "/Resources/Prefabs/Models/";
  foreach (string s in Directory.GetDirectories(path))
  {
      projects.Add(s.Remove(0, path.Length));
  }
  
  foreach (string result in projects)
  {
      buttonResult = Instantiate(buttonProjectPrefab).GetComponent&lt;Button&gt;();
      buttonResult.transform.SetParent(GameObject.FindGameObjectWithTag("Level").transform);
      buttonResult.GetComponent&lt;RectTransform&gt;().localScale = new Vector3(1, 1, 1);
      buttonResult.GetComponent&lt;Button&gt;().onClick.AddListener(delegate { CreateModelButtons(); });
      buttonResult.name = result;
      buttonResult.GetComponentInChildren&lt;Text&gt;().text = result;
  }
  </code></pre>
  
  <p>So now I'm trying to figure out how to do this for iOS. 
  I know Unity encodes the files, soo what I used won't be possible.</p>
  
  <p>What should I do to get all the folders in my resource folder to create them as button on iOS?</p>