Expand description
Makara is a bevy UI simplifer. Its main goal is to make it easy to build high performance GUI application using bevy engine.
§Example
ⓘ
fn on_button_click(click: On<Clicked>, mut text_q: TextQuery, mut router: ResMut<Router>) {
if let Some(mut text) = text_q.find_by_id("my-text") {
text.set_text("Hello mars");
}
}
fn setup(mut commands: Commands) {
commands.spawn(
root_!([
text_!("Hello earth", id: "my-text"),
button_!("Click me"; on: on_button_click)
])
);
}Re-exports§
pub use prelude::*;