3个不稳定版本

0.2.0-alpha.22024年4月25日
0.2.0-alpha.12024年4月24日
0.1.0 2024年4月10日

#1789 in 游戏开发

MIT/Apache

32KB
281

bevy-compose

Crates.io version docs.rs docs CI status

Bevy的反应式UI框架

fn app() -> impl Compose {
    lazy(|mut count: UseState<i32>| {
        let (mut count, _count_entity) = count.use_state(|| 0);

        dbg!(*count);

        *count += 1;
    })
}

fn main() {
    bevy_compose::run(app);
}

灵感来源

此库受XilemConcoct以及SwiftUI的静态反应式方法启发。

依赖关系

~19–46MB
~741K SLoC