Skip to content

jakobhellermann/bevy_ecs_dynamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

let component_id_1 = world.init_component::<TestComponent1>();
let component_id_2 = world.init_component::<TestComponent2>();

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

About

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages