Skip to main content

run_scene_advance

Function run_scene_advance 

Source
pub(crate) fn run_scene_advance(entity: Entity) -> OnFrame
Expand description

Run the scene’s own per-frame behaviour when the sequence advanced, and count the frame.

The behaviour needs &mut World, which a frame callback does not have, so it is queued; the index is captured before it is counted on, so the behaviour is handed the frame it advances from.