MemR/game/sort/GifLoader.gd

10 lines
175 B
GDScript3
Raw Normal View History

extends TextureRect
func load_gif(path : String) -> bool:
var loader : GIFLoader = GIFLoader.new()
loader.load_gif(path)
texture = loader.create_texture()
return true