Though sprites can consist of a single image, they generally require many. In traditional sprite animation, animation clips are obtained by displaying several images in a sequence, each representing a stage (or keyframe) of the complete animation. These groups of images in sequence are referred to as spritesheets and they are the building blocks of sprite animation.
In the following recipe, we show you how to set a Multiple Mode Sprite Texture to create a cycle that shows our 2D sprite walking.
You should have already imported both the sprites we provided during the previous lesson, so do it now if you haven't.
Move to the Project panel and access the Sprites folder. Now select 2D_walk to access the image properties in the Inspector window.
Set Texture Type to Sprite as we did before, but this time, set Sprite Mode to Multiple, as this sprite contains several steps of the walking cycle. You can refer to the following screenshot: