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(); }
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(); }