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
This system checks if Nest is visible and, if not, exits without taking effect.
If we were to conditionally not run this system by using a run_if condition then change detection would be negatively affected. Changed<Position> would contains all changes since the system last ran. This isn't desirable. An alternative would be to remove the system entirely, but this isn't currently supported. As such, the workaround is to run the system, but do nothing, to ensure change detection functions as desired.
The text was updated successfully, but these errors were encountered:
Currently, Bevy does not support removing Systems from running applications, bevyengine/bevy#279
This results in rendering systems which must check state and early exit. As an example,
This system checks if
Nest
is visible and, if not, exits without taking effect.If we were to conditionally not run this system by using a
run_if
condition then change detection would be negatively affected.Changed<Position>
would contains all changes since the system last ran. This isn't desirable. An alternative would be to remove the system entirely, but this isn't currently supported. As such, the workaround is to run the system, but do nothing, to ensure change detection functions as desired.The text was updated successfully, but these errors were encountered: