WebGLInput icon indicating copy to clipboard operation
WebGLInput copied to clipboard

fullscreen edits affect viewport in itch.io

Open nicanorrr opened this issue 4 years ago • 3 comments

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: image

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 image

nicanorrr avatar May 17 '20 11:05 nicanorrr

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

kou-yeung avatar May 18 '20 00:05 kou-yeung

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

nicanorrr avatar May 18 '20 08:05 nicanorrr

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

kou-yeung avatar Jun 22 '20 09:06 kou-yeung

release a new version for fullscreen. release

you can call WebGLSupport.WebGLWindow.SwitchFullscreen() from your app to switch fullscreen.

kou-yeung avatar May 13 '24 10:05 kou-yeung