Skip to main content

spawn_in

Function spawn_in 

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

Spawn bundle into scope’s subtree.

A scene’s content hangs under the source that draws it: a source renders the subtree it owns, so an entity spawned beside the source is one no frame of it shows.