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