Function insert_from_world

Source
pub fn insert_from_world<T>(mode: InsertMode) -> impl EntityCommand
where T: Component + FromWorld,
Expand description

An EntityCommand that adds a component to an entity using the component’s FromWorld implementation.