wechat-miniprogram / minigame-unity-webgl-transform

Wechat Mini Game Unity engine adapter documents.
https://wechat-miniprogram.github.io/minigame-unity-webgl-transform/
MIT License
3.01k stars 458 forks source link

转为微信小游戏后postMessage is not defined #775

Closed yyget closed 1 month ago

yyget commented 6 months ago

描述Bug

ReferenceError: postMessage is not defined at Browser_emulated_setImmediate (webgl.wasm.framework.unityweb.js:13543) at Object.Browser_mainLoop_scheduler_setImmediate [as scheduler] (webgl.wasm.framework.unityweb.js:13547) at Browser_mainLoop_runner (webgl.wasm.framework.unityweb.js:13673) at Function. (fix.js? [sm]:72) at VM507 WAGameSubContext.js:1 at Function.cbWithTimeStamp (gamePage.html:58) at p (VM491 WAGame.js:1) at VM491 WAGame.js:1 at VM491 WAGame.js:1(env: Windows,mg,1.06.2404301; lib: 3.2.5)

运行环境

win11,tuanjie1.1.3,wxsdk最新
Oooocean commented 1 month ago

问题是否还存在,请联系我们小助手详细看看:https://wechat-miniprogram.github.io/minigame-unity-webgl-transform/Design/IssueAndContact.html