bevy_entity_graph

Crate to facilitate working with graphs of entities in Bevy.
Features:
- Event-driven graph modifications.
- Auotmatically updated connected component tracking.
Usage
use bevy_entity_graph::{ConnectMessage, Connections, EntityGraphPlugin, InConnectedComponent};
fn my_system(mut commands: Commands, mut connect_events: EventWriter<ConnectEvent>) {
let e1 = commands.spawn((Connections::default(), ...)).id();
let e2 = commands.spawn((Connections::default(), ...)).id();
connect_events.write(ConnectMessage((e1, e2)));
}
See examples for a working demo.
Bevy support table
| bevy |
bevy_entity_graph |
| 0.17 |
0.2.0 |
| 0.16 |
0.1.0 |