public static void OpenWindow(ExportData exportData) { if (exportData == null) { return; } SplitAreaWindow win = GetWindow <SplitAreaWindow>(); win.titleContent = new GUIContent("拆分区域配置"); win.Show(); win.Init(exportData); }
public void ExportArea() { ExportData exportData = new ExportData(); exportData.m_Map = m_Map; exportData.m_ExportParameter = MapEditorUtility.CreateExportParameter(); exportData.m_AreaSpawners = new List <AreaSpawner>() { this }; SplitAreaWindow.OpenWindow(exportData); //老版导出设置 //new Exporter().BeginExport(m_Map, m_Map.ExportSetting, new ExportParameter(),new List<AreaSpawner>() { this}); }