Skip to content

Query<EntityMut> system param unexpectedly conflicts with some Res<T> one #15621

Closed
@djeedai

Description

@djeedai

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

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorD-Domain-ExpertRequires deep knowledge in a given domainS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions