| Crates.io | bevy_bundletree |
| lib.rs | bevy_bundletree |
| version | 0.6.1 |
| created_at | 2024-05-18 22:34:17.560031+00 |
| updated_at | 2025-10-06 03:20:27.721238+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 | 663,405 |
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.17 | 0.6.0 |
| 0.16 | 0.5.0 |
| 0.15 | 0.3.0-0.4.0 |