#bevyui — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #bevyui, aggregated by home.social.
-
UwU, I've just found out about `SystemState` in #Bevy :awesome:
https://docs.rs/bevy/latest/bevy/ecs/system/struct.SystemState.html
It basically allows you to circumvent (mutable) borrowing issues with `App` and `World` when you have exclusive `World` access.
As it turns out, this is especially useful in #UnitTests. 🧪 ✅See next two toots for an example...
1/3
-
So you want to build an ECS-backed #GUI framework
Challenges and opportunities in the future of `bevy_ui` - by Alice I. Cecile, Rose Peck (November 2023)
https://www.leafwing-studios.com/blog/ecs-gui-framework/
I think UI in Bevy has very high potential! Very good points and current limitations mentioned by the authors.
Regarding using ECS for UI: In classical OOP UIs, the decorator pattern is often used.
In ECS, you basically have decorator pattern by default! 💪