public void SaveSceneNodeCanvas(string path) { canvas.editorStates = new NodeEditorState[1] { state }; NodeEditorSaveManager.SaveSceneNodeCanvas(path, ref canvas, true); }
/// <summary> /// Saves the mainNodeCanvas and it's associated mainEditorState as an asset at path /// </summary> public void SaveSceneNodeCanvas(string path) { mainNodeCanvas.editorStates = new NodeEditorState[] { mainEditorState }; NodeEditorSaveManager.SaveSceneNodeCanvas(path, ref mainNodeCanvas, true); Repaint(); }