private void OnButtonGUI(Rect sourcePosition) { if (GUI.Button(sourcePosition, "Edit Graph")) { GraphWindow.OpenActive(GraphReference.New((IMacro)metadata.value, true)); } }
private void OnEditButtonGUI(Rect position) { EditorGUI.BeginDisabledGroup(reference == null); if (GUI.Button(position, "Edit Graph", Styles.editButton)) { GraphWindow.OpenActive(reference); } EditorGUI.EndDisabledGroup(); }