We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e4ace commit 7476193Copy full SHA for 7476193
src/unityEditor.ts
@@ -584,6 +584,7 @@ class UnityEditor {
584
*/
585
public static async openProject(
586
projectInfo: ProjectInfo,
587
+ useHub: boolean = true,
588
batchmode: boolean = false,
589
waitForExit: boolean = true
590
): Promise<boolean> {
@@ -600,6 +601,11 @@ class UnityEditor {
600
601
args.push("-batchmode");
602
}
603
604
+ if (useHub) {
605
+ args.push("-useHub");
606
+ args.push("-hubIPC");
607
+ }
608
+
609
const editorInfo = { version: projectInfo.editorVersion };
610
const options = { reject: false };
611
0 commit comments