Function ambient_api::ecs::spawn_query

source ·
pub fn spawn_query<Components>(components: Components) -> EventQuery<Components>
where Components: ComponentsTuple + Copy + Clone + 'static,
Expand description

Creates a new EventQuery that will find entities that have the specified components that will call its bound function when an entity with those components are spawned / seen for the first time by this query.