Function bevy::ecs::prelude::apply_deferred
source · pub fn apply_deferred(world: &mut World)Expand description
Instructs the executor to call System::apply_deferred
on the systems that have run but not applied their Deferred system parameters
(like Commands) or other system buffers.
§Scheduling
apply_deferred systems are scheduled by default
- later in the same schedule run (for example, if a system with
Commandsparam is scheduled inUpdate, all the changes will be visible inPostUpdate) - between systems with dependencies if the dependency
has deferred buffers
(if system
bardirectly or indirectly depends onfoo, andfoousesCommandsparam, changes to the world infoowill be visible inbar)
§Notes
- This function (currently) does nothing if it’s called manually or wrapped inside a
PipeSystem. - Modifying a
Schedulemay change the order buffers are applied.