Get sprite from atlas

Hello, i have atlas (many sprites have one packing tag), how i can get list of all sprites, or get one sprite by name? I don’t believe that only way is Load from resources (Resources.Load)

I working on bubble shooter, and have many colored balls sprites (with different pictures on it), i make
enum BallColor { red, blue … e.t.c.} and when i set enum on prefab - blue, i want to load sprite equals “blueball”, and i think that load it from resources very stupid…
For example in 2d toolkit i can load sprite by name from atlas.

Agreed… Really need this. 2DToolkit is vastly more functional. Hopefully Dev team has caught their breath, enjoyed the holidays ad are getting down to the business of making the 2D stuff not just cool but functionally cool…

  • Sprite names or ID#s
  • Swappable atlas for multi res
  • Sprite anim speed control

And just personal pref… reverse the order of the layers…it feels ‘backwards’.

Id’s - bad idea, only if id is unique, and sprite deleted permanently with id from atlas.
I thought that this functionality is present, but it is not(
http://feedback.unity3d.com/suggestions/access-from-code-to-2d-atlases - vote for this idea

ID per atlas is unique. This is how 2DTK handles it, why bad?

In 2dtoolkit, if i have sprite amination, and i delete some sprites from collection, animation is down, because id redistributed again. If i have sprite with last id (for example 250) in animation, when i delete 10 sprites from atlas, i have last id is 240

Ooh that makes sense. Yeah, I’d not delete a sprite after animation. If it were only one or two, easier to just leave them in the atlas if they are not particularly big. Ideally not, but it nuking them caused a cascade of issues? I’d weigh it.