better-unity-webgl-template
better-unity-webgl-template copied to clipboard
Full screen on click
The game goes full screen when I first click on the canvas.
For now I stopped this behaviour by adding a Fullscreen.jslib to the project with this code:
var LibraryFullscreen = {
JS_SystemInfo_HasFullscreen: function()
{
return 0;
}
};
mergeInto(LibraryManager.library, LibraryFullscreen);
I'm on the latest version of Chrome, if it matters (looks like it doesn't happen on Firefox). Thanks for the help :)
Where do you put this file? In build folder or with index?
The game goes full screen when I first click on the canvas.
For now I stopped this behaviour by adding a Fullscreen.jslib to the project with this code:
var LibraryFullscreen = { JS_SystemInfo_HasFullscreen: function() { return 0; } }; mergeInto(LibraryManager.library, LibraryFullscreen);I'm on the latest version of Chrome, if it matters (looks like it doesn't happen on Firefox). Thanks for the help :)
I have same issue. Somebody Help Me!