First, select your asset and look in the ‘Inspector’ toolpane. Unity has included a few new tools to make this happen a lot easier than it was previously. The next step is to divide this sheet into individual sprites. Go ahead and rename the asset to just “professor_walk” it will be easier to work with in a bit.
In Unity, Right-Click the Assets folder in the Project toolpane and select ‘Import New Asset…’.Right-Click the image and select ‘Save image as…’ or ‘Save picture as…’, then save the image in a folder.Since we aren’t creating a full game here I won’t go through the process of setting up all my asset folders, instead let’s just download the professor from above and add him to the asset folder. This will make Unity use a default working mode for 2D instead of 3D, but it’s easy enough to switch back and forth, don’t worry if you missed it the first time.
Lets name the project 2DAnimation and make sure you select 2D from the ‘Setup defaults for:’ drop down. Open Unity 4.3 and select File->New Project. This particular spritesheet was done as part of the “Liberated Pixel Cup” on, the artist is Skyler Robert Colladay, with the entry, FeralFantom's Entry.
Unity 2d animation sprite how to#
This time it was how to do animated sprites, but not just any animated sprites, sprites with multiple animations. As I explore the 2D features of Unity, I discover more and more cool things.