title: Unity, resources.loadall() returns null objects
body: <p>I am trying to change the image used for a sprite in unity, I am getting the error:NullReferenceException: Object reference not set to an instance of an object
  This has led me to believe that my loadall function is not working since it returns an array of null objects. Here is my code:</p>
  
  <pre><code>Sprite[] sprites = Resources.LoadAll&lt;Sprite&gt;("Sprite/Chests");
  </code></pre>
  
  <p>I then use the array with this line:</p>
  
  <pre><code>SpriteRender.sprite = sprites[SpriteIndex];
  </code></pre>