Below are pictures to my process in creating sprite animations in unity with captions to help you step by step. I made my sprites in adobe illustrator and photoshop. Keep in mind that you need to save copies of the files as illustrator, photoshop, and .png files just in case you need to edit, or reuse the files. Click on the photos for a full view of the screen.
Open Unity
be sure to save this to a safe file by clicking the three circles under location
Find the location of the files that you will use as a sprite. They need to be saved as .png files.
Example of .png files
select them all by clicking on them all once while holding the control key
once selected, drag them into the gray space below. This is your unity assets folder.
once you have that done you need to open the sprites by clicking the arrows on the side of each picture.
then select the inside box ( the darker one) and click create, and go down to animation.
next you want to name your animation. I named mine Anim 1 to keep it simple
then select the gray box sprites again, right click, select create, and then go down to controller. Name it the same as the animation to keep things organized.
double click the controller. Now you should be in the controller window
Drag the animation into the controller window.
Then in the right hand window (inspector) find the box that’s labeled loop time. This will make the animation continue to play.
move the first light gray sprite into the scene window by clicking and dragging it.
Finally you need to double click your sprite to enter the sprite inspector window (right hand side of the screen). Once you have the window open, drag the controller into the lower half of the inspector window. After that just press play and the sprite will begin to move.
Related