Greetings,
I wish to know that how to use the animator when I want to create Sprite sheet animations using a series of png images (usual run, jump and so on).
I have some code to actually play an animation sequence out of a Sprite array (or linked list) but I don’t know how to harness the power of mecanim here.
Thanks in advance.
And as for most of my posts sod it, I wrote a basic animation controller meself using an enum and the spritesheet sequence player set to 24 fps (to easy up on memory usage with the smaller number of images). I just had to monitor when the character changes animation states and adjust my state machine acconrdingly. I then have a function with a switch in it that actually tells the sprite renderer each frame what to do.
It should be as simple as drag and dropping the spritesheet to the Animation Window. (and placing the resultant keys where you want them)
Or you can drag individual sprites to the Animation Window
Or you can change the sprite on the character and record a Keyframe
Or you can drag a series of sprites to the scene view, and it should automatically create an object with the Sprite Animation on it.