AsmdefHelper/Assets/AsmdefGraph/Editor/AsmdefGraphEditorWindow.cs
2019-12-08 23:55:34 +09:00

18 lines
480 B
C#

using UnityEditor;
namespace AsmdefGraph.Editor {
public class AsmdefGraphEditorWindow : EditorWindow {
[MenuItem("Window/Open Asmdef Graph Window")]
public static void Open() {
GetWindow<AsmdefGraphEditorWindow>("AsmdefGraphWindow");
}
void OnEnable() {
var graphView = new AsmdefGraphView() {
style = { flexGrow = 1 }
};
rootVisualElement.Add(graphView);
}
}
}