-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL fullscreen cannot work, unity 2022.3.20 LTS #138
Comments
release a new version for fullscreen. you can call WebGLSupport.WebGLWindow.SwitchFullscreen() from your app to switch fullscreen. |
I encountered an issue where I don't know how to call this method when clicking on Unity's default template fullscreen button. However, calling 'switchfullscreen' within the game works fine. Another issue is that I tried using Unity's minimal default template (which doesn't have a fullscreen button) and then calling this method within the game, which resulted in an error. It seems like this method must be called from within the default template? |
on Unity's default template fullscreen button. i tried eidt the index.html ( unity 2023.2.2f1 ) Line.106
the default fullscreen button is work. |
and i tried Unity's minimal default template. because minimal default template was like ↓
document.makeFullscreen() is add a new div element to parentNode of canvas. ( in this case is the ) e.g. in Unity's default template non fullscreen mode :
when called WebGLSupport.WebGLWindow.SwitchFullscreen()
|
i think can check the canvas parentNode type and switch it... |
release a new version for minimal default template |
update README demo link use github io. |
i will try to overwrite the default fullscreen button after build. |
release a new version~ |
I have tested it on Chrome, Firefox, Edge, and Safari, and now it can all be input correctly. This is great! Thank you very much. I have a small suggestion, Could you please adjust the position of the suggestion box more reasonably? Sometimes it appears at the top of the screen, and other times it may cover the input box, especially when using Safari. |
can i has a reproduction project. and create a new isuue to me. |
so, i will close this issue~ |
I noticed you have had some recent updates, and I'm not sure if one of the issues I previously raised (#134) has been addressed. There has been an ongoing problem in the 2022.3.x version where I couldn't input Chinese characters while in full-screen mode(Full-screen mode without the white bar at the top.)I have tested it in firefox, google chrome and edge on windows10
The text was updated successfully, but these errors were encountered: