Export a 2D animation to GIF file

Hey Guys! I want to export a 2D animation to GIF file, how can I do this? I want to put this animation into my portifolio

Unity doesn’t really have a gif exporter built-in. So if it’s just for extracting your animation as a gif, the easiest solution is probably by using Screen2Gif in single snapshot mode. You can setup your recording area (make sure it covers the relevant area) and just take a snapshot, move to the next frame, take a snapshot and so on. Once you’re done you can adjust / overwrite the delay of all or individual frames, but usually having the same throughout the animation is usually the best unless you actually have sudden jumps.

I usually make the first frame delay longer or insert a still frame so the viewer knows where the animation starts. Of course if you have a perfect looping animation that wouldn’t make much sense :slight_smile:

I made many gif animations that way. For example this and this to show how the area calculation of a polygon is independent of the origin.

If you have many frames using the normal record mode may be easier. You can later go through the individual frames and delete some which may be duplicated and adjust the delays to get a decent “video”. Here I captured the rotation gizmo of SpaceEngineers. Here I used record mode and cut out duplicate frames so it looks more or less “smooth”.

Screen2Gif is an awesome portable tool which has many usecases. Though there are of course alternatives

This is definitely too late but this online gif maker helped me make a gif with the same settings as unity I just had to have separate images for each frame than using the sprite editor before. you can even select which way to pivot images (I had an animation that anchored to the middle left).

ezgif.com-resize (1)

Maybe not the best for a level design portfolio… but I like it! :slight_smile: