Closed ocean-beach closed 2 weeks ago
It is possible, but you will have to run the animation yourself.
Load all frames, assign them all their own texture, then flip between them at the right interval (remember to use Context::request_repaint
)
@ocean-beach I have this working in one of my projects here : https://github.com/Gui-Yom/vibin/blob/26e1a89a193d16754a1e33bd495aa51cd9b886a1/src/main.rs
In this code, I schedule a repaint from another thread so I can get the timings right without impacting the UI itself. Though I'm not sure how you could integrate this with bevy.
Thanks a lot @emilk and @Gui-Yom
Support for animated GIFs has been added in https://github.com/emilk/egui/pull/4620.
Hi. I'm using bevy_egui https://github.com/mvlabat/bevy_egui that provides a Egui integration for the bevy game engine.
I'm trying to render simple Window with .gif animation.
It it possible to render .gif animation with Egui?