Skip to content

Is there a more granular way to track changes? #2526

Answered by mockersf
SarthakSingh31 asked this question in Q&A
Discussion options

You must be logged in to vote

Bevy change detection is on resource level, so no, no built in more granular way...

That said:

  • you could split your resource into smaller ones, grouping them by things that make sense to be used together for change detection
  • you would probably need a ResMut<GameScene> to update change tracking only when you update the resource, so you should already have a ResMut?
  • you could look into rust patterns for interior mutability for your change detection if that's an issue

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SarthakSingh31
Comment options

Answer selected by SarthakSingh31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants