Add sprite animation - GreenBlackSky/the_steam_song GitHub Wiki

  1. Add sprite images into Sprites folder.
  2. Convert them into Sprite 2D/UI objects.
  3. Cut them in sprite editor if necessary.
    1. Install the sprite editor from the package manager if one is missing.
  4. Create a new empty gameobject, save it in the Animations folder as an asset and open it in the scene.
  5. Drag'n'drop sprites into the scene, a new animation will be automaticly created.
    1. New AnimationController will also be automaticly created, delete it if you already have one.
    2. Alternatevly you may just drug'n'drop group of sprites into hierarchy, gameobject will be created automaticly.
  6. Set time intervals in the animation.
  7. Add it into the AnimationController, set transitions and triggers.
  8. Well done!