コード例 #1
0
 private void OnButtonGUI(Rect sourcePosition)
 {
     if (GUI.Button(sourcePosition, "Edit Graph"))
     {
         GraphWindow.OpenActive(GraphReference.New((IMacro)metadata.value, true));
     }
 }
コード例 #2
0
        private void OnEditButtonGUI(Rect position)
        {
            EditorGUI.BeginDisabledGroup(reference == null);

            if (GUI.Button(position, "Edit Graph", Styles.editButton))
            {
                GraphWindow.OpenActive(reference);
            }

            EditorGUI.EndDisabledGroup();
        }