let rt = new cc.RenderTexture();
rt.initWithSize(width, height);
camera.targetTexture = rt;
camera.render(camera.node.parent); // 从新渲染
// 读取图片像素数据
let data = rt.readPixels();
获取的数据data :Uint8Array
微信小游戏:苹果安卓测试都有对应的颜色值数据;
字节跳动小游戏:安卓数据都为0,苹果有数据;
QQ小游戏:安卓有数据,苹果数据都为0;