你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
发现
话题
全文搜索
登录
[]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该如何处理?
没有找到相关结果
已邀请:
与内容相关的链接
提交
1 个回复
淡淡的疯
赞同来自:
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);
该问题目前已经被锁定, 无法添加新回复
发起人
淡淡的疯
相关问题
微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案
Layaair IDE的帧属性面板不见了
List 组件列表渲染异常
layabox3.07版本使用纹理压缩色彩很大
LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭
纹理平铺怎么做
编辑器Tree组件树节点渲染回调两次
layaair3.1.3版本打出的项目中的text与label组件在vivo小游戏引擎1105及以下文字显示异常
分享,扩展Laya.Text组件实现简单的富文本
ui list 里面的元素不能点击两次
dialog可以点击到外部的元素,如何使其外边不能点击
问题状态
最新活动:
2018-10-02 03:08
浏览:
8308
关注:
2
人
商务合作
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);