Hello. I have created an asset bundle which has sprites in folder hierarchy. What I want is that I get array of these sprites by using the parent folder name. Is this possible?
I can get single sprite using AssetBundle.LoadAsset<Sprite>("spriteName.png");
but I want array of sprites using the parent folder name. How can I do this?
Probably the best way would be to have separate bundles or to rename the assets when you build them, prepending the folder name. The names get flattened when bundled. You can see the original path in the data, but I am not aware of a way (safely) to look it up by that. Ideally you don’t want to need to rely on path, and you want names to be unique.