コード例 #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open in Node Editor"))
     {
         if (ConstellationEditorWindow.ConstellationEditorWindowInstance == null)
         {
             ConstellationEditorWindow.Init();
         }
         ConstellationEditorWindow.ConstellationEditorWindowInstance.Open(AssetDatabase.GetAssetPath(target));
     }
     base.OnInspectorGUI();
 }
コード例 #2
0
 public override void OnInspectorGUI()
 {
     GUILayout.Label("Static node");
     if (GUILayout.Button("Open in Node Editor"))
     {
         if (ConstellationEditorWindow.ConstellationEditorWindowInstance == null)
         {
             ConstellationEditorWindow.Init();
         }
         ConstellationEditorWindow.ConstellationEditorWindowInstance.Open(new ConstellationScriptInfos(AssetDatabase.GetAssetPath(target),
                                                                                                       ConstellationScriptInfos.ConstellationScriptTag.NoTag,
                                                                                                       false));
     }
     base.OnInspectorGUI();
 }