BonsaiBehaviourTree icon indicating copy to clipboard operation
BonsaiBehaviourTree copied to clipboard

Implement Undo

Open luis-l opened this issue 4 years ago • 0 comments

The editor should have its own undo structure, so it does not interfere with Unity's undo.

Ideally, control+u would be the default undo action trigger. Unsure if it is possible to prevent Unity from also using control+u after the BonsaiEditor uses it.

I think a persistent data structure could be used as the underlying mechanism for undo. This will store state for every tree change. Undo/Redo will simply be moving up or down a list which stores copies of the persistent data structure.

luis-l avatar Jun 15 '20 16:06 luis-l