| Crates.io | bevy_bundletree |
| lib.rs | bevy_bundletree |
| version | 0.5.0 |
| created_at | 2024-05-18 22:34:17.560031+00 |
| updated_at | 2025-04-26 20:58:56.506648+00 |
| description | Spawn trees of bundles in the Bevy game engine. |
| homepage | https://github.com/Katsutoshii/bevy_bundletree |
| repository | https://github.com/Katsutoshii/bevy_bundletree |
| max_upload_size | |
| id | 1244532 |
| size | 649,706 |
bevy_bundletreeSpawn trees of bundles in Bevy to make UI Code more ergonomic.
The current version heavily based on https://github.com/Leafwing-Studios/i-cant-believe-its-not-bsn.
use bevy_ecs::prelude::*;
use bevy_bundletree::ChildBundle;
#[derive(Component)]
struct A;
#[derive(Component)]
struct B(u8);
fn spawn_hierarchy(mut commands: Commands) {
commands.spawn(
(A, // Parent
ChildBundle( // This component is removed on spawn
(A, B(3)) // Child
)
));
}
| bevy | bevy_bundletree |
|---|---|
| 0.15 | 0.3.0 |