More helper methods for `DetectChangesMut`
Open
A-ECS
C-Usability
D-Straightforward
S-Ready-For-Implementation
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
Frequently I have this kind of code appear in UI logic.
It would be nice if bevy `DetectChangesMut` would provide direct methods:
* `map_unchanged_set_if_neq`
* `map_unchanged_replace_if_neq`
* `map_unchanged_clone_from_if_neq`
We can do it in follow up PR if necessary, but for now I started offtopic discussion.
_Originally posted by @PPakalns in https://github.com/bevyengine/bevy/issues/22903#issuecomment-3887304295_
Contributor guide
Assessment
This issue has not been assessed yet.