Meqn / UnityWebGL.js

An easy solution for embedding Unity WebGL builds in webApp or Vue.js project, with two-way communication between your webApp and Unity. 🏣 在webApp 或 Vue.js 项目中嵌入 Unity WebGL,并支持通过API在 webApp 和 Unity 之间进行双向通信。
https://www.npmjs.com/package/unity-webgl
MIT License
134 stars 22 forks source link

Unity build loads twice #16

Closed OctopussyO closed 1 year ago

OctopussyO commented 1 year ago

Hello!

We have an app with different games. User can select a game from map-page. Each game uses unity. We have a wrapper component for unity.

The problem is that when you open the NEXT game unity build loads twice.

So, for example, you open the first game (unity build loads). Then you go to map-page and choose another game. When this another game page is opened the build loads twice for some reason.

Do you have any idea what could be the reason?

OctopussyO commented 1 year ago

https://dev.shadow-scratch.wall.black/chapters/1501/lessons/5028?demo-id=unity_release

Meqn commented 1 year ago

https://dev.shadow-scratch.wall.black/chapters/1501/lessons/5028?demo-id=unity_release

@OctopussyO Sorry, I can't find the problem with your demo, please provide a simple example source code

Meqn commented 1 year ago

@OctopussyO upgrade to v3.2.0