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 b287415 commit 62b22feCopy full SHA for 62b22fe
module/source/types/unity-instance.d.ts
@@ -5,10 +5,13 @@ import { UnityModule } from "./unity-module";
5
/**
6
* Type declaration for the UnityInstance.
7
*/
8
-type UnityInstance = Pick<
9
- UnityModule,
10
- "SendMessage" | "SetFullscreen" | "Quit"
11
-> & {
+type UnityInstance = Pick<UnityModule, "SendMessage" | "SetFullscreen"> & {
+ /**
+ * Quits the Unity WebGL application and removes it from the memory.
+ * @returns a promise which resolves when the application did quit.
12
+ */
13
+ Quit(): Promise<void>;
14
+
15
16
* The internal Unity Module.
17
0 commit comments