asadm / playroom-unity

9 stars 1 forks source link

Input on lobby not working in sample project #27

Closed asadm closed 5 months ago

asadm commented 5 months ago

In the demo project: https://docs.joinplayroom.com/demos/unity/index.html

The unity Input system is capturing the keystrokes and not sending them to input box. Can we fix this by not starting input capture on unity until insertCoin callback is called, in example project.

momintlh commented 5 months ago

Adding WebGLInput.captureAllKeyboardInput = false; before InsertCoin() and setting it to true in the callback fixes this.

asadm commented 5 months ago

can we add it to sdk itself if skipLobby is not set.