static void OpenWindow() { Rect wr = new Rect(0, 0, 500, 500); CreateDataWindow window = (CreateDataWindow)EditorWindow.GetWindowWithRect <CreateDataWindow>(wr, true, "创建数据资源"); window.Show(); }
public static void OpenWindow() { if (instance == null) { instance = (CreateDataWindow)EditorWindow.GetWindow(typeof(CreateDataWindow)); } instance.Show(); }
private void CreateDataClick(object sender, RoutedEventArgs e) { dataWindow.Show(); }