[0]Texture.getPixels在手机真机Native环境中会报错
将游戏打包成APK后在真机或者手机模拟器中运行时,对纹理使用getPixels会引发报错!因为是必现所以没有提供DEMO了
getPixels(x, y, width, height) {
if (window.conch) {
return this._nativeObj.getImageData(x, y, width, height); //this._nativeObj为空!
}
else {
return this.getTexturePixels(x, y, width, height);
}
}
getPixels(x, y, width, height) {
if (window.conch) {
return this._nativeObj.getImageData(x, y, width, height); //this._nativeObj为空!
}
else {
return this.getTexturePixels(x, y, width, height);
}
}
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
luoshaoja
赞同来自:
Yan
赞同来自: