gree / gree/unity-webview

Webview not working on Webgl - Unity 2020.1.6

Open
#672 6 comments 0 reactions 0 assignees View on GitHub

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
Screenshot 2021-04-08 at 3 09 34 PM

Minimal webgl template on 2020.1.6
Screenshot 2021-04-08 at 3 08 24 PM

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.