An open API service indexing awesome lists of open source software.

https://github.com/jakobhellermann/bevy_ecs_dynamic

Utilites for working with `bevy_ecs` when not all types are known at compile time
https://github.com/jakobhellermann/bevy_ecs_dynamic

Last synced: about 1 year ago
JSON representation

Utilites for working with `bevy_ecs` when not all types are known at compile time

Awesome Lists containing this project

README

          

# bevy_ecs_dynamic

Utilities for working with `bevy_ecs` in situations where the types you're dealing with might not be known at compile time (e.g. scripting, modding).

# Example Usage

## Dynamic Query

```rust
let component_id_1 = world.init_component::();
let component_id_2 = world.init_component::();

world.spawn().insert(TestComponent1).insert(TestComponent2);
world.spawn().insert(TestComponent1);

let mut query = DynamicQuery::new(&world, vec![FetchKind::Ref(component_id_1)], vec![FilterKind::Without(component_id_2)]);
assert_eq!(query.iter(&world).count(), 1);
```

# Bevy support table

| bevy | bevy\_ecs\_dynamic |
| ---- | ------------------ |
| 0.8 | _unreleased_ |