I have a game in dev currently using SFML.NET and considerung moving it to unity 5 for better plattform independancy. For better performace I have all my sprites in a single texture and a json file containing information of the kind of sprite (tile, enemy, item, …) where each sprite is located on the texture, as long as some metainfo (damage inflicted, speed modifier when on this tile, …).
I have watched a tutorial on how to create an animation manually (starting here at 0:40 http://unity3d.com/learn/tutorials/projects/2d-roguelike/animations ). Since my spritesheet currently contains 2.7k sprites (100+ enemies with different walking directions, animations, …).
I can get the individual frames with
Sprite sprite = Sprite.Create(spriteSheet, new Rect(..), new Vector2(...));
Then there is an Animation class that has an AddClip method, but the AnimationClip does not take a Sprite ref. Then there is AnimationState, AnimationCurve…
Can Someone provide me with a minimum example?