bevy_entity_graph

Crates.iobevy_entity_graph
lib.rsbevy_entity_graph
version0.2.0
created_at2025-10-02 02:23:30.345067+00
updated_at2025-10-06 00:48:53.499446+00
descriptionCreate graphs of entities in the Bevy game engine.
homepagehttps://github.com/Katsutoshii/bevy_entity_graph
repositoryhttps://github.com/Katsutoshii/bevy_entity_graph
max_upload_size
id1863780
size157,298
Josiah Putman (Katsutoshii)

documentation

https://docs.rs/bevy_entity_graph/latest/bevy_entity_graph

README

bevy_entity_graph

License Crates.io Docs

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>) {
  // Spawn some entities with Connections.
  let e1 = commands.spawn((Connections::default(), ...)).id();
  let e2 = commands.spawn((Connections::default(), ...)).id();
  // Connect them.
  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
Commit count: 0

cargo fmt