mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
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.