I wrote a GIF loader in GDScript!
It's kinda slow.
GIF Loader
I wrote a GIF loader in GDScript!
It's kinda slow.
-Kiri
How to use it
Load a GIF into a PackedByteArray. Use something like
FileAccess.get_file_as_bytes.
Call GIF_Loader.load_spriteframes_from_gif_buffer with those bytes!
It'll return a SpriteFrames object if it succeeds (partially or
otherwise). It'll probably return null if it fails completely.
If that's too slow, you can call
GIF_Loader.load_spriteframes_from_gif_buffer_async to do it
asynchronously.
Good luck!