1
0
Fork
You've already forked GodotGIFLoader
1
I wrote a GIF loader in GDScript! It's kinda slow.
  • GDScript 100%
2026年05月28日 20:32:43 -07:00
classes Initial commit, which is actually a squashed commit of something where I made a bunch of really bad commit messages that nobody should ever see anyway. 2026年05月28日 20:32:43 -07:00
gifloader.gd Initial commit, which is actually a squashed commit of something where I made a bunch of really bad commit messages that nobody should ever see anyway. 2026年05月28日 20:32:43 -07:00
gifloader.gd.uid Initial commit, which is actually a squashed commit of something where I made a bunch of really bad commit messages that nobody should ever see anyway. 2026年05月28日 20:32:43 -07:00
LICENSE.md Initial commit, which is actually a squashed commit of something where I made a bunch of really bad commit messages that nobody should ever see anyway. 2026年05月28日 20:32:43 -07:00
plugin.cfg Initial commit, which is actually a squashed commit of something where I made a bunch of really bad commit messages that nobody should ever see anyway. 2026年05月28日 20:32:43 -07:00
README.md Initial commit, which is actually a squashed commit of something where I made a bunch of really bad commit messages that nobody should ever see anyway. 2026年05月28日 20:32:43 -07:00

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!