how to create a 2d animation from an image in unity 2017
hello steemit
today i will show you how to create a 2d animation from an image in unity 2017. I will use this image as an exemple :
1st step
select the image . In the "Inspector" window , change "sprite mode" form single to multiple and press "Sprite Editor"
![](https://steemitimages.com/640x0/https://steemitimages.com/DQmdkM9w69AiZitkYNv6Wmnxi6y5hNuQAVV7HkJpxmAcHkN/1.png)
2nd step
the "sprite editor" window will open
make sure that type set to "automatic",pivot set to "Center" and method set to "Delete Existing".
after that press "Slice"
![](https://steemitimages.com/DQmbi6C1f3yBcHxbEBkyDA5qttqB3MuPxZBS35xmN9ArDhe/2.png)
3rd step
Now, every part is alone all what you need is pressing "Apply"
![](https://steemitimages.com/640x0/https://steemitimages.com/DQmcJajRvKjGxsKot6nJ2tTDhSFLMGgA9FrDC7K4jRkj96L/3.png)
4th step
Now, select all the pictures (or the pictures that you need),drag and drop them into the Scene window
![](https://steemitimages.com/DQmSo5NTVqANdEwGUUJSBEpnTLXkrUfSUPX2pdA7fk8xPrs/4.png)
last step
now you need to save your animation , a window will open automatically .all you need to do is name your animation and save it
![](https://steemitimages.com/640x0/https://steemitimages.com/DQmSamnM29qCjJvsVaqjBMb9wcdMA8v4CM8gcTyGbeXPzNB/5.png)
now when you hit play button you can see that your animation is working 😁
![](https://steemitimages.com/DQmVUvzbiP5cbs4hhzvTtSAwfFpmrZbPqfx4LB4Gb1cTkSL/6.gif)
Thank you for reading.I hope this article is useful for you. if there is any problem , just write a comment 😁
see you in the next article. 💓 💓