Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update NodeEditor.cs
I initially found out about this through https://docs.unity3d.com/ScriptReference/Editor.html specifically these two comments: ```csharp // Update the serializedProperty - always do this in the beginning of OnInspectorGUI. serializedObject.Update (); ... // Apply changes to the serializedProperty - always do this in the end of OnInspectorGUI. serializedObject.ApplyModifiedProperties (); ``` I'm assuming, although I don't know for sure, that since OnBodyGUI displays the serialize objects in the custom inspector, that it must follow the same rules as well. Either way these lines of code solve for me the glitch: pressing undo while typing and getting a disconnect between the node and the inspector.
- Loading branch information