WebGLInput
WebGLInput copied to clipboard
fullscreen edits affect viewport in itch.io
after doing the edits to fix the fullscreen mode, when I uploaded the program to itch.io the game was vertically offcenter to the iframe. i used the auto-detect size setting.
auto-detect:
i am not using the manual setting and made it extra big. it is still off center. The margin on the top part is much bigger
Although editing the fullscreen is not highly recommended, Unity2020 will change the WebGL Template and you will no longer be able to use the previously defined methods.
I'm wondering if there's a better way
I don't think it's a priority issue because I can just manually set the iframe size in itch.io. It won't look the best but maybe it's better to just wait for Unity2020 changes :) I can't suggest a better way because I'm not well-versed in html and css
i have release a new version to support fullscreen. no need edit the element style, just call a inject function only.
FYR: https://github.com/kou-yeung/WebGLInput/wiki/Support-FullScreen
release a new version for fullscreen. release
you can call WebGLSupport.WebGLWindow.SwitchFullscreen() from your app to switch fullscreen.