title: Using Resources Folder in Unity
body: <p>I have am developing a HoloLens project that needs to reference .txt files. I have the files stored in Unity's 'Resources' folder and have them working perfectly fine (when run via Unity): </p>
  
  <pre><code>string basePath = Application.dataPath;
  string metadataPath = String.Format(@"\Resources\...\metadata.txt", list);
  
  // If metadata exists, set title and introduction strings.
  if (File.Exists(basePath + metadataPath))
  {
        using (StreamReader sr = new StreamReader(new FileStream(basePath + metadataPath, FileMode.Open)))
      {
           ...
      }
  }
  </code></pre>
  
  <p>However, when building the program for HoloLens deployment, I am able to run the code but it doesn't work. None of the resources show up and when examining the HoloLens Visual Studio solution (created by selecting build in Unity), I don't even see a resources or assets folder. I am wondering if I am doing something wrong or if there was a special way to deal with such resources.</p>
  
  <p>Also with image and sound files...</p>
  
  <pre><code>foreach (string str in im)
  {
        spriteList.Add(Resources.Load&lt;Sprite&gt;(str));
  }
  </code></pre>
  
  <p>The string 'str' is valid; it works absolutely fine with Unity. However, again, it's not loading anything when running through the HoloLens.</p>