微信小游戏项目中用到了背景图片像素为720*3120但是加载不出来,其它图片都能够正常加载并显示,请问这是什么原因呢?
微信小游戏项目中用到了背景图片像素为720*3120但是加载不出来,其它图片都能够正常加载并显示,请问这是什么原因呢?
The wechat game project uses the background image with a pixel of 720 * 3120, but it cannot be loaded. Other images can be loaded and displayed normally. What is the reason for this?
回答:
微信小游戏图片像素应该限制在2048*2048, 超过2048的会无法显示,建议把图片调整到合适尺寸。
原文出处:微信小游戏图片加载不出来?
你好,可以提供个能复现问题的简单代码片段看下(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。