public override void OnInspectorGUI() { if (GUILayout.Button("Open Editor")) { InstructionGraphWindow.ShowWindowForGraph(_graph); } DrawDefaultInspector(); DrawNodes(_nodesProperty); }
public override void OnInspectorGUI() { if (GUILayout.Button("Open Editor")) { InstructionGraphWindow.ShowWindowForGraph(_graph); } using (new UndoScope(serializedObject)) { DrawPropertiesExcluding(serializedObject, "m_Script", "_nodes"); DrawNodes(_nodesProperty); } }