private void SaveCache() { if (!useCache) { return; } if (nodeCanvas.livesInScene) { DeleteCache(); return; } nodeCanvas.editorStates = new NodeEditorState[] { editorState }; NodeEditorSaveManager.SaveNodeCanvas(lastSessionPath, nodeCanvas, false); CheckCurrentCache(); }
public void SaveNodeCanvas(string path) { nodeCanvas.editorStates = new NodeEditorState[] { editorState }; NodeEditorSaveManager.SaveNodeCanvas(path, nodeCanvas, true); NodeEditor.RepaintClients(); }