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 facec05 commit 0b52d19Copy full SHA for 0b52d19
module/source/hooks/use-unity-context.ts
@@ -63,9 +63,10 @@ const useUnityContext = (unityConfig: UnityConfig): UnityContext => {
63
* Pointer lock mode allows the Unity Instance to capture mouse movements
64
* without the cursor leaving the Unity canvas.
65
*/
66
- const requestPointerLock = useCallback(() => {
67
- unityInstance?.Module.canvas?.requestPointerLock();
68
- }, [unityInstance]);
+ const requestPointerLock = useCallback(
+ () => unityInstance?.Module.canvas?.requestPointerLock(),
+ [unityInstance]
69
+ );
70
71
/**
72
* Sends a message to the Unity Instance to invoke a public method.
0 commit comments