- Home /
Why is unity not compatible with .gif files?
I have roamed the forums, and they all say to simply import all frames individually (or as a sprite-sheet) and then turn them into an animation in unity. This is what I have been doing up till now, and that works fine. To get the motion right however, I need to create the animation in another program, and it just seems like an unnecessary chore to split up a finished gif just to re-assemble it inside unity. So out of curiosity, do any of you know the reason why unity can't simply interpret the gif and save it as a collection of sprites? Is there a better way? Thanks in advance
Answer by Harinezumi · Feb 19, 2018 at 10:18 AM
I think it is a design decision that Unity doesn't support .gifs, most probably because artists often use higher quality image formats with better compresion, like .png. Another possible reason is that it is very easy to transform a .gif into a series of .png files and then create a sprite animation from it, see this answer, this forum thread, and this reddit.
Nah, at a quick glance they all seem to explain the same process, I just wanted to give various options, because maybe one explains it better.
Your answer
Follow this Question
Related Questions
Translate and Update (from java to c# (4.6UI)) 1 Answer
How to make a animated minimap? 0 Answers
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers