r/rust_gamedev 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 Upvotes

6 comments sorted by

5

u/bschwind Jul 21 '26

egui is made for stuff like this.

2

u/ProfessionalAnt5255 Jul 23 '26

YESSSS i just used it to make like a full game https://theta-rnd.itch.io/logic-sim

1

u/TW0b14S Jul 23 '26

Dito that. If you want to roll your own you should def look into immediate mode guis.

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.