pub fn retain<T: Bundle>() -> impl EntityCommandExpand description
An EntityCommand that removes all components from an entity,
except for those in the given Bundle.
pub fn retain<T: Bundle>() -> impl EntityCommandAn EntityCommand that removes all components from an entity,
except for those in the given Bundle.