- Home /
How to Load multiple spritesheets separately from Resources?
I have a folder with multiple spritesheets with different names in Resources. I am trying to load all of the spritesheets but they come loaded with all their sprites together. Is there any way to differentiate between the sheets. (i.e. BowSnipeS as one sprite Object and FireTileS as a separate sprite Object).
I don't want to do Resources.Load("name") for each spritesheet because i will have many of them.
Example of what i want to load:
Ideally these would be loaded into a dictionary with the Key = "BowSnipeS" and the Value = Sprite[] of all the sprites in that spritesheet. (then another entry with "FlameTileS")
Unless you have a thousand or more sheets, I think any algorithm you make to do this would be longer or more complicated than just doing each one by name.
Yeah, I have a database of projectiles with a "Spritesheet" column. It gets all the string from that column then loads (non-duplicate) spritesheets and turns them into animations. Still doing a Load for each spritesheet tho.