-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-Domain-ExpertRequires deep knowledge in a given domainRequires deep knowledge in a given domainS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong
Description
Bevy version
0.14.2
What you did
pub fn component_animator_system(
time: Res<Time>,
events: ResMut<Events<TweenCompleted>>,
mut q_anim: Query<EntityMut, With<Animator>>,
) {What went wrong
The component query conflicts with the resources:
bevy_ecs-0.14.2/src/system/system_param.rs:302:5:
error[B0001]: Query<bevy_ecs::world::entity_ref::EntityMut, bevy_ecs::query::filter::With<bevy_tweening::Animator>> in system bevy_tweening::plugin::component_animator_system accesses component(s) bevy_ecs::event::Events<bevy_tweening::tweenable::TweenCompleted>, bevy_time::time::Time in a way that conflicts with a previous system parameter. Consider using `Without<T>` to create disjoint Queries or merging conflicting Queries into a `ParamSet`. See: https://bevyengine.org/learn/errors/#b0001
Asked on #ecs-dev, this looks like an error, as component queries shouldn't conflict with resources.
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-Domain-ExpertRequires deep knowledge in a given domainRequires deep knowledge in a given domainS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongThis issue requires detective work to figure out what's going wrong