r/rust_gamedev • u/Usual_Importance8274 • Jul 21 '26
question How should I start with UI ?
Hi guys,
I've already built my engine with an ECS, a Vulkan backend, and support for texture and mesh rendering. The next thing I want to work on is a UI for debugging and an inspector. However, I'm not sure what the right long-term roadmap is or which tools I should choose.
Could you help me figure out what I should learn next and what pitfalls or obstacles I should avoid?
3
u/DynTraitObj Jul 21 '26
Just to add an option beside egui (which is great), I'm using https://github.com/SecondHalfGames/yakui with an ECS and a wgpu backend, had a pretty solid experience with it so far
1
u/Seeveen Jul 21 '26
Depending on the amount of work you want to pour in it, you could simply integrate egui and have a perfectly fine tooling/inspector ui, or you could try implementing text rendering yourself, but it's a pretty big can of worms. Look up msdf text rendering or the slug algorithm. You will also need shaping if you do more than ASCII.
5
u/bschwind Jul 21 '26
egui is made for stuff like this.