I have 32 sprites, im trying to cycle through them over the course of 2 seconds and apply this animation to a quad,i want to be able to call this from a script and i dont want it to loop. Ive never used unitys animation tools before and i cannot for the life of me figure out how to actually add the sprites to it. I keep trying to drag them in but that doesnt seem to do anything, and the console is giving me several errors saying “Unable to create animatable SpriteRenderer component UnityEngine.Debug:LogError(Object)” any help here would be appreciated
Try these steps:
- Select the game object.
- Goto
Animation
window. Click the drop down near “Samples” in the left pane. - Save the animation file.
- Drag drop the image frames in the right pane.
- Set “Samples” for sampling rate.
- Press “Play” button of animation window and you are good to go.
Hope it helps!
If you have a MeshFilter added you have to remove it.