dantasulisses / WebMobileInputFix

A Unity WebGL workaround to enable mobile input (virtual keyboard) be triggered by Input Fields
MIT License
55 stars 14 forks source link

Gameinstance is not defined #5

Open hongxitao opened 4 years ago

hongxitao commented 4 years ago

try to run the test scene in chrome, and then try to type in the inputfeild it showed: Uncaught ReferenceError: gameInstance is not defined at HTMLInputElement.oninput ((index):24) Uncaught ReferenceError: gameInstance is not defined at HTMLInputElement.onblur ((index):24)

v2k commented 4 years ago

change to whatever you are creating in index,html; ie:

var unityInstance = UnityLoader.instantiate

gameInstance => unityInstance in the default case.

slagatoras commented 4 years ago

hey sorry could you explain this a bit more? have the same issue

RectangleEquals commented 4 years ago

I've taken the time to fix this issue here: https://github.com/dantasulisses/WebMobileInputFix/issues/7