Closed pmhpereira closed 8 years ago
To fix that, add these lines somewhere in NodeEditor.checkInit inside the if block:
#if UNITY_EDITOR
UnityEditor.EditorApplication.playmodeStateChanged += () => { initiated = false; InitiationError = false; };
#endif
That simply makes sure the NodeEditor is re-inited after entering and editing playmode:)
When loading a canvas file after exiting
Play
mode, nothing appears in theNode Editor
and a error is thrown. It also becomes impossible to add new nodes to the canvas. The solution is to start and stop thePlay
mode.Steps to reproduce:
Play
mode in UnityNew Canvas
in theNode Editor
Play
modeLoad Canvas
fileMissingReferenceException: The object of type 'Texture2D' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. NodeEditorFramework.NodeKnob.GetGUIKnob () (at Assets/Plugins/Node_Editor/Framework/NodeKnob.cs:143)