Skip to content
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

Resolution problem that occurs when I see the built screen on mobile after I build it with Webgl. #859

Open
jhj198988 opened this issue Nov 30, 2022 · 4 comments

Comments

@jhj198988
Copy link

Currently, I am using the Unity version 2021.3.11f1 and I am testing it by build it with Webgl.
When I build with Webgl, it comes out very well when I used a pc to look at the screen, but when I use a mobile to look at the screen, there is a resolution problem.
(The picture below shows a resolution problem when I look at the screen using a mobile. The resolution is much smaller than the screen on the mobile)
20221130_160401419
I am currently using Unity-webview-2020 for Webgl template, and I am using Default Canvas Width, Height 1920 and 1080.
Is there a solution?

@KojiNakamaru
Copy link
Member

Thank you for the report. #846 seemed to introduce this issue, which is now fixed by #860. Could you please try the latest?

@jhj198988
Copy link
Author

Thank you for the report. #846 seemed to introduce this issue, which is now fixed by #860. Could you please try the latest?
I applied the latest version, but it's still the same.
The screen I saw on the mobile after build the webgl is shown in the picture below.
20221202_1016

@KojiNakamaru
Copy link
Member

Hmm, at least the sample app seems to run without such an issue. I've put adjusted sample that can be directly built for webgl with 2021.3.11f1:

https://github.com/gree/unity-webview/tree/example-for-859/sample

and sample-webgl.zip is the build. The following is a screenshot of it running on iPhone Safari:

image

@jhj198988
Copy link
Author

Hmm, at least the sample app seems to run without such an issue. I've put adjusted sample that can be directly built for webgl with 2021.3.11f1:

https://github.com/gree/unity-webview/tree/example-for-859/sample

and sample-webgl.zip is the build. The following is a screenshot of it running on iPhone Safari:

Problem solved.
It was solved by exporting the downloaded sample project(https://github.com/gree/unity-webview/tree/example-for-859/sample) itself and importing it into my project.
Thank you so much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants