Skip to main content

spawn_shared

Function spawn_shared 

Source
pub fn spawn_shared<B: Bundle>(world: &mut World, bundle: B) -> Entity
Expand description

Spawn bundle into the world’s shared subtree.

State every source of a scene reads — the input batches — belongs here: a source’s own scope holds what it draws, and one beside it would hold what the other cannot see.