Hello.
I'm using UISpriteAnimation on my GameObject that represents walking animal.
It uses different atlases for different states.
Atlas name is depend on movement direction ("walk_left", "walk_down", "walk_left_down" and so on).
I change atlas name when state is changed.
All works properly while sprite count in atlases is the same.
When it is different then I get troubles:
UISpriteAnimation either doesn't show all existing sprites (when the current atlas has more sprites than the previous one has) or tries to show non-existing frames (current atlas sprite count < previous atlas sprite count).
It seems, RebuildSpriteList isn't invoked when atlas is changed.
And there is no way to manually rebuild it (except manipulations with prefix name... or we should change source code and make this method public).
It would be nice, if UISpriteAnimation could detect the case when atlas name is changed.
Fix it, please.
Thanks.