canvas.toTempFilePath 手机端可用,pc绘制为白屏

小游戏 文章 2022-02-17 20:00 819 0 全屏看文

AI助手支持GPT4.0

canvas.toTempFilePath 手机端可用,pc绘制为白屏canvas.toTempFilePath is available on the mobile phone, and the pc is drawn as a white screen

canvas.toTempFilePath 手机端可用,pc绘制为白屏
框架类型 问题类型 终端类型 微信版本 基础库版本
小游戏 Bug 工具 3.5.0.46 2.19.2

使用了开放域,但是手机是可以使用的,pc上不可使用

Framework type problem type terminal type wechat version basic library version small game bug tool 3.5.0.46 2.19.2 uses the open domain, but the mobile phone can be used, and the code fragment canvas cannot be used on the PC toTempFilePath({ destWidth: 400, destHeight: 300, success: (res) => { wx.shareAppMessage({ imageUrl: res.tempFilePath }) } })

回答:

张晨 🔆:

工具上这个问题 已复现,修复中

小游戏运营专员 - 宏:

提供下appid,以及可以复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

S..🌪:是webgl有问题,canvas没问题
S..🌪:

是webgl的canvas.toTempFilePath有问题

-EOF-

AI助手支持GPT4.0