Only run update system when there are changes to an inspected resource #92
-
In the demo example, a system continuously runs to update entities with the Data resource. This seems inefficient if the project grows, and the number of inspectors and entities becomes large. I would like the update system to only run when I change values in the inspector. How can I only update components when there are changes to the inspected resource? |
Beta Was this translation helpful? Give feedback.
Answered by
jakobhellermann
Oct 31, 2022
Replies: 1 comment
-
You can add if !data.is_changed() {
return;
} to your function, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
askor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add
to your function,
bevy-inspector-egui
should only mark resources as changed if they were actually edited.