Function retain

Source
pub fn retain<T: Bundle>() -> impl EntityCommand
Expand description

An EntityCommand that removes all components from an entity, except for those in the given Bundle.