Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 18LSC on April 14, 2018, 08:56:49 AM

Title: FSM interrupting "undo/redo" in unity
Post by: 18LSC on April 14, 2018, 08:56:49 AM
I tend to use undo and redo in unity a fair amount, sometimes for quite long strings of actions.

But I found if an object with an FSM is selected during an undo or redo progress, it stops dead and all undo states are gone for good :/

eg: I select 10 objects in succession, I can ctrl z / y back and forth through all 10, but if I put an object with FSM at object 5 for example, it will stop on 5 and deleteall undo states.. I dunno why it does this.

is this just me? is there a way to avoid this?  ???
Title: Re: FSM interrupting "undo/redo" in unity
Post by: djaydino on April 14, 2018, 02:13:12 PM
Hi,
I do not know why, but i had some issues with that too before.

Now i usually save multiple scenes while doing things and when i need to revert something, i load one of the previous scenes.

And more recently i tend to just drop in an older scene in the current scene and then copy paste the states/actions.

Same for prefabs, but i tend to minimize prefabs.
Title: Re: FSM interrupting "undo/redo" in unity
Post by: 18LSC on April 15, 2018, 07:54:18 AM
Hi,
I do not know why, but i had some issues with that too before.

Now i usually save multiple scenes while doing things and when i need to revert something, i load one of the previous scenes.

And more recently i tend to just drop in an older scene in the current scene and then copy paste the states/actions.

Same for prefabs, but i tend to minimize prefabs.

Yeah it is really odd :| I work around it as best I can too

I would love something similar in Unity that Photoshop has, the history snapshot, so you can take a snapshot of the current state of everything, play around with stuff, then load the previous snapshot back and forth for comparison etc, or even simply a history tab like PS that shows each step that can be selected.

I'm not aware of any add ons for unity like that, but I'd love one
Title: Re: FSM interrupting "undo/redo" in unity
Post by: djaydino on April 15, 2018, 10:49:37 AM
Hi,
Maybe this could be usefull for you :

https://assetstore.unity.com/packages/tools/utilities/autosave-scene-90091
Title: Re: FSM interrupting "undo/redo" in unity
Post by: 18LSC on April 16, 2018, 09:41:29 AM
Hi,
Maybe this could be usefull for you :

https://assetstore.unity.com/packages/tools/utilities/autosave-scene-90091
Interesting, sorta similar, thanks for the link