You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to use e.g. leafwing_input_manager::common_conditions::action_toggle_active in run_if.
What you expected to happen
The run_if condition should work.
What actually happened
Observed a panic such as:
ERROR app: panicked at /home/teohhanhui/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.14.2/src/system/system_param.rs:534:17:
Resource requested by leafwing_input_manager::common_conditions::action_toggle_active<hexciv::Action>::{{closure}} does not exist: leafwing_input_manager::action_state::ActionState<hexciv::Action>
Version
cd50ba1
Operating system & version
N/A
What you did
leafwing_input_manager::common_conditions::action_toggle_active
inrun_if
.What you expected to happen
The
run_if
condition should work.What actually happened
Observed a panic such as:
Additional information
It works if I switch to using a pattern like https://github.com/Leafwing-Studios/leafwing-input-manager/blob/cd50ba147978dfbc4e824fa0aa9695996b2caf13/examples/action_state_resource.rs
The text was updated successfully, but these errors were encountered: