Implementing undo in bevy #9532
Unanswered
ThomasAlban
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to implement undo in my bevy application. I have a number of points whose positions can be modified, the points can be created/deleted, or properties on the points' components can also be modified. I have seen the
bevy-undo2
crate which I could use, but it seems annoying to have to create an event every time the state of the application is modified. Is there some kind of diffing algorithm that can be applied to all editable points to work out what has changed, and push only that change to the undo stack? That way I would only have to callset_undo_point()
when the state of the app is modified, and the correct command will be pushed.Beta Was this translation helpful? Give feedback.
All reactions