コード例 #1
0
 public override void OnInspectorGUI()
 {
     GUI.color = new Color(1, 0.75f, 0.5f);
     if (GUILayout.Button("Open Editor", GUILayout.Height(40)))
     {
         DashEditorWindow.InitEditorWindow(null);
         DashEditorCore.EditGraph((DashGraph)target);
     }
 }
コード例 #2
0
        public static bool OpenDashGraphEditor(int p_instanceID, int p_line)
        {
            Object asset = EditorUtility.InstanceIDToObject(p_instanceID);

            if (asset.GetType() == typeof(DashGraph))
            {
                string path = AssetDatabase.GetAssetPath(asset);
                DashEditorWindow.InitEditorWindow(null);
                DashEditorCore.EditGraph((DashGraph)AssetDatabase.LoadAssetAtPath <DashGraph>(path));

                return(true);
            }

            return(false);
        }
コード例 #3
0
 private void OpenEditor()
 {
     DashEditorWindow.InitEditorWindow(Controller);
 }