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
.
pub fn retain<T: Bundle>() -> impl EntityCommand
An EntityCommand
that removes all components from an entity,
except for those in the given Bundle
.