[]LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上
A:let texture = new Laya.Texture(sharedCanvas);
backImage.graphics.drawTexture(texture)
B:backImage.texture = texture
1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误:
value._addReference is not a function
请问现在2。0该如何处理?
backImage.graphics.drawTexture(texture)
B:backImage.texture = texture
1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误:
value._addReference is not a function
请问现在2。0该如何处理?
没有找到相关结果
已邀请:
1 个回复
淡淡的疯
赞同来自:
texture2D.loadImageSource(sharedCanvas, true);
var texture = new Laya.Texture(texture2D);
//texture.bitmap.alwaysChange = true;
rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height);