Webview not working on Webgl - Unity 2020.1.6
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
Unity changed the "index.html" template and Loader methods on Unity 2020. unity-webview uses old template and it's not working on newer version. Is there any workaround to make it work for 2020.x versions? Thanks!
Attached templates on unity-webview asset and new minimal webgl templates for reference!
Unity-webview asset template

Minimal webgl template on 2020.1.6

Os: macOS Big Sur 11.2.3
Unity: 2020.1.6f1
Browser: Chrome 89.0.4389.114
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
Compare the attached unity-webview asset template with the Unity 2020.1.6 minimal WebGL template, and inspect the Loader methods referenced in the issue. Reproduce the failure with Unity 2020.1.6f1 on WebGL; done means the webview works with the newer template and Loader behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- unity
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100