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 3506226 commit be05866Copy full SHA for be05866
testing/src/unity-test.tsx
@@ -19,6 +19,7 @@ const UnityTest: FunctionComponent = () => {
19
addEventListener,
20
removeEventListener,
21
takeScreenshot,
22
+ unload,
23
} = useUnityContext({
24
codeUrl: "/unitybuild-2020-1/example-app.wasm",
25
dataUrl: "/unitybuild-2020-1/example-app.data",
@@ -83,6 +84,9 @@ const UnityTest: FunctionComponent = () => {
83
84
style={{ border: "1px solid red", height: 300, width: 400 }}
85
ref={canvasRef}
86
/>
87
+ <p>
88
+ <button onClick={() => unload()}>Unload</button>
89
+ </p>
90
</div>
91
);
92
};
0 commit comments