Пример #1
0
        private void SaveCache()
        {
            if (!useCache)
            {
                return;
            }
            if (nodeCanvas.livesInScene)
            {
                DeleteCache();
                return;
            }

            nodeCanvas.editorStates = new NodeEditorState[] { editorState };
            NodeEditorSaveManager.SaveNodeCanvas(lastSessionPath, nodeCanvas, false);

            CheckCurrentCache();
        }
Пример #2
0
 public void SaveNodeCanvas(string path)
 {
     nodeCanvas.editorStates = new NodeEditorState[] { editorState };
     NodeEditorSaveManager.SaveNodeCanvas(path, nodeCanvas, true);
     NodeEditor.RepaintClients();
 }