[]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该如何处理?
QQ截图20181001011452.png
已邀请:

淡淡的疯

赞同来自:

var texture2D = new Laya.Texture2D();
texture2D.loadImageSource(sharedCanvas, true);
 
var texture = new Laya.Texture(texture2D);
//texture.bitmap.alwaysChange = true;
rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height);

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作