Sprite sheet animations

Hi all,

This is duplicate from the animation forum since noone is replying there.

I’m having a bit of trouble trying to create an animation (gif style). I created an object, with Image and Animation component, sliced my spritesheet into 6, and dragged the 6 slices into the animation tab.

Everything looks/feels fine but using preview play it doesn’t update the image at all.

Adding and using other settings like position or scale animated correctly so it’s not an issue with me being unable to see the animation.

I tried using a sprite renderer component but that didn’t even show anything let alone an animation.

Any help would be appreciated.

Thanks,
Primoz

Drag your 6 sprites in the scene directly, the will make a new animation and you they save them, after that you can modify your animation like you want :wink:

That exactly what I done, as you can see in the screenshot i have the 6 images at each second mark but when these marks are hit in play mode nothing updates (image doesn’t change).

Ofc you need to add a Animator component if you dont have
so when you creat a anim by drag and drop unity make a .anim file and a animator controller
So add on your gameObject a Animator controller component and open your animator panel with the right animator for edit your animation.
sry for my english but if you understand its fine :smile:

Like papzz said you needed to add an Animator component then create a Animator Controller for your object. Instead of the image component you should be using a sprite renderer. I know you said you used one already but nothing showed up but try again and just drag all your sprites onto the animation. If they’re not visible try making the animation pane bigger, there is also a minimise option on the sprites in the animation pane. I can’t remember how to turn it off but it is something simple like right clicking or double clicking on the sprite in the pane. Hope this helps

Thanks, that actually helped me find the issue - the pixels per unit on the sprites were set too high so things were so small i couldn’t see them.