| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;using GraphProcessor;public class AllGraphWindow : BaseGraphWindow{	BaseGraph			tmpGraph;	CustomToolbarView	toolbarView;	[MenuItem("Window/05 All Combined")]	public static BaseGraphWindow OpenWithTmpGraph()	{		var graphWindow = CreateWindow< AllGraphWindow >();		// When the graph is opened from the window, we don't save the graph to disk		graphWindow.tmpGraph = ScriptableObject.CreateInstance<BaseGraph>();		graphWindow.tmpGraph.hideFlags = HideFlags.HideAndDontSave;		graphWindow.InitializeGraph(graphWindow.tmpGraph);		graphWindow.Show();		return graphWindow;	}	protected override void OnDestroy()	{		graphView?.Dispose();		DestroyImmediate(tmpGraph);	}	protected override void InitializeWindow(BaseGraph graph)	{		titleContent = new GUIContent("All Graph");		if (graphView == null)		{			graphView = new AllGraphView(this);			toolbarView = new CustomToolbarView(graphView);			graphView.Add(toolbarView);		}		rootView.Add(graphView);	}	protected override void InitializeGraphView(BaseGraphView view)	{		// graphView.OpenPinned< ExposedParameterView >();		// toolbarView.UpdateButtonStatus();	}}
 |