1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00
phoenixanimations ffc061f64e
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.
2018-08-26 22:55:57 -04:00
..
2018-02-19 17:09:59 +01:00
2018-08-26 22:55:57 -04:00
2017-09-15 15:56:17 +02:00
2017-09-15 00:46:21 +02:00
2017-09-15 00:46:21 +02:00
2017-09-15 00:46:21 +02:00
2018-06-21 23:21:32 +02:00
2017-09-23 00:26:38 +02:00