Skip to content

State::is_changed is true in every frame, even if the value hasn't changed since last time the system was run. #2343

@CGMossa

Description

@CGMossa

Bevy version

main-branch

Operating system & version

Windows 10

What you did

Added a state and wanted to print out how the state after it is changed.

What you expected to happen

I expect the printing not to happen on each frame, and only when the state has been changed/set.

What actually happened

Additional information

This is very similar to #2275.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions