Resolution problem that occurs when I see the built screen on mobile after I build it with Webgl.
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
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)

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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with Unity 2021.3.11f1 using the Unity-webview-2020 WebGL template and a 1920×1080 default canvas, then compare the result on desktop and mobile. Start by inspecting the WebGL template's viewport and canvas-scaling behavior; done means the built screen uses the mobile viewport correctly without regressing desktop display.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- unity
- Domain
- game-dev, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100