How did you implement the undo/redo logic?
I presume you don't delete the entities on undo but hide them instead? Then you can show them again if redo is triggered?
A community for discussion around the bevy game engine! https://bevyengine.org/
How did you implement the undo/redo logic?
I presume you don't delete the entities on undo but hide them instead? Then you can show them again if redo is triggered?
I have a special trait that generates a reverse command. And store a stack of commands. Here is the source.
I presume you don’t delete the entities on undo but hide them instead?
No, I do a full despawn. Just remember it's data to spawn again thanks to the mentioned trait.