Can egui - a rust based immediate mode GUI, be used in Defold?

I’m recently interested in game programming UIs, and like Defold and it’s committment to making things easy and targetting web/desktop/consoles with great docs

I noticed that Defold has a Dear ImGUI extension, and also found a similar immediate mode GUI libarary, egui - written in rust - and egui seems like ImGUI the next generation, on quick review.

Is it possible to build a wasm library for egui, and use it in Defold?

I noticed that the ImGUI extension mentions cimgui, and implies that 1:1 bindings for a wasm lib could be generated, and used in Defold.

Has this been done already, or if not, any suggestions? Thanks for your time :smiley: !

I’m not so sure about egui being next gen really. It seems more like a limited version of Dear ImGUI written in Rust, with the fact that it is written in Rust as the main selling point, not so much that it is better than ImGUI:

But anyways, if you want to use egui in Defold as an extension you need to compile it into libs for each platform you wish to support. We do not support wasm libs.

1 Like

ok cool - thanks for the feedback, and great lib/tooling - much appreciated!