(Cross posted from http://gamedev.stackexchange.com/)
I’m using a sprite atlas and Unity’s built-in sprite editor to tease out the individual images. Specifically, I have a single texture containing lots and lots of icons for armor, and I am assigning those to a Sprite[] field of a Component.
However, the process of manually assigning sprites to the component – via drag and drop – is tedious. Is there a faster way to do this? Perhaps a way I can bulk assign sprites to a component?

Update: If you put the texture atlas in the /Resources folder, you can load all of its sprites programmatically via:
Sprite[] atlasSprites = Resources.LoadAll<Sprite>(atlasName);
This seems like the best way to accomplish what I was trying to solve.
