-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to clear all components on an entity via EntityWorldMut (#…
…13588) # Objective Adds capability to clear all components on an entity without de-spawning said entity. ## Testing The function calls `remove_by_id` on every component in the entity archetype - wasn't sure if it's worth going out of our way to create a test for this considering `remove_by_id` is already unit tested. --- ## Changelog Added `clear` function to `EntityWorldMut` which removes all components on an entity. ## Migration Guide N/A --------- Co-authored-by: Alice Cecile <[email protected]>
- Loading branch information
1 parent
f237cf2
commit 42d8037
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters