Module common_conditions

Source
Expand description

Common run conditions

Functions§

on_real_timer
Run condition that is active on a regular time interval, using Time<Real> to advance the timer. The timer ticks are not scaled.
on_timer
Run condition that is active on a regular time interval, using Time to advance the timer. The timer ticks at the rate of Time::relative_speed.
once_after_delay
Run condition that is active once after the specified delay, using Time to advance the timer. The timer ticks at the rate of Time::relative_speed.
once_after_real_delay
Run condition that is active once after the specified delay, using Time<Real> to advance the timer. The timer ticks are not scaled.
paused
Run condition that is active when the Time<Virtual> clock is paused. Use bevy_ecs::schedule::common_conditions::not to make it active when it’s not paused.
repeating_after_delay
Run condition that is active indefinitely after the specified delay, using Time to advance the timer. The timer ticks at the rate of Time::relative_speed.
repeating_after_real_delay
Run condition that is active indefinitely after the specified delay, using Time<Real> to advance the timer. The timer ticks are not scaled.