i-cant-believe-its-not-bsn

Crates.ioi-cant-believe-its-not-bsn
lib.rsi-cant-believe-its-not-bsn
version0.1.1
sourcesrc
created_at2024-10-06 18:56:23.415329
updated_at2024-10-17 01:11:12.533833
descriptionTools for spawning entity hierarchies in Bevy
homepage
repositoryhttps://github.com/Leafwing-Studios/i-cant-believe-its-not-bsn
max_upload_size
id1399287
size37,145
Alice Cecile (alice-i-cecile)

documentation

README

i-cant-believe-its-not-bsn

An ergonomic way to spawn Bevy entity hierarchies using component hooks and the magic of the type system.

Eagerly waiting for BSN? Really wish you could spawn hierarchies with less boilerplate? Just want to define some reusable widget types for bevy_ui in code?

Try WithChild, or its iterator sibling, WithChildren! Just add it as a component holding the bundle you want to use to spawn the child, and you're off to the races. A component hook will see that this component has been added, extract the data from your WithChild component, and then move it into a child, cleaning itself up as it goes.

Have fun!

Commit count: 27

cargo fmt