Skip to content

Commit 7476193

Browse files
committed
fix(Editor): Force hubIPC and usehub to add projects
1 parent e9e4ace commit 7476193

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unityEditor.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ class UnityEditor {
584584
*/
585585
public static async openProject(
586586
projectInfo: ProjectInfo,
587+
useHub: boolean = true,
587588
batchmode: boolean = false,
588589
waitForExit: boolean = true
589590
): Promise<boolean> {
@@ -600,6 +601,11 @@ class UnityEditor {
600601
args.push("-batchmode");
601602
}
602603

604+
if (useHub) {
605+
args.push("-useHub");
606+
args.push("-hubIPC");
607+
}
608+
603609
const editorInfo = { version: projectInfo.editorVersion };
604610
const options = { reject: false };
605611

0 commit comments

Comments
 (0)