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

udp send dataLength异常导致无法发送的问题 #788

Closed dongfangshu closed 2 weeks ago

dongfangshu commented 5 months ago

描述Bug

只调用Send方法控制台无报错,调用Send后再调用Write报错send: fail sendUDPSocketMessage:fail The "buffer" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined。打印一下dataLength发现是一很大的值,config.length才是正确的值 截屏2024-06-12 12 59 21

运行环境

操作系统:macOS sonoma 14.2.1
unity版本号:2021.2.5f1c301
sdk版本:minigame.202405171605
导入方式:unitypackage导入
平台:WEBGL
0oQiaoo0 commented 3 weeks ago

可以把转换插件更新至最新版试下,最新版更新了相关适配