Skip to content

Commit 828889a

Browse files
fix: Unity open on process end
1 parent 24272aa commit 828889a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/modules/unity.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,9 @@ export const createUnityProject = async (unityPath: string, projectPath: string)
5757
}
5858

5959
export const openUnityProject = async (unityPath: string, projectPath: string) => {
60-
await execa(unityPath, ["-projectPath", projectPath], { stdio: "ignore" });
60+
await execa(unityPath, ["-projectPath", projectPath], {
61+
stdio: "ignore",
62+
detached: true,
63+
cleanup: false,
64+
});
6165
}

0 commit comments

Comments
 (0)