Question by
JulienLzn · 4 days ago ·
editorcustom editorundo
Undo Redo Custom Editor Error ("Assertion failed on expression: '!GetUndoManager().IsProcessing()'")
Hi everyone, I'm working on an implementation of Undo/Redo system for one of our internal tool and im facing a problem that i don't understand.
Unity Editor throw this error when I press Cmd+W after pressing on a Boolean in the custom editor
Assertion failed on expression: '!GetUndoManager().IsProcessing()'
UnityEditor.Undo:RegisterCreatedObjectUndo (UnityEngine.Object,string)
TrackEditor:OnChangedEnableTrack (bool) (at Assets/_Template/Scripts/Track/Editor/TrackEditor.cs:189)
TrackEditor:OnInspectorGUI () (at Assets/_Template/Scripts/Track/Editor/TrackEditor.cs:85)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
If i unselect the current object before performing the undo, all of the process if working correctly.
Can someone has already encounter this issues ?
Comment