大约有 443 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0040 秒)
Laya_社区(240) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(13) Laya2.0_示例(7) Laya3.0_文档(3) Laya_示例(2)
... Uncaught TypeError: tex.once is not a function at Graphics.__proto.drawTexture (laya.core.js:1577) at onloaded (laya.core.js:1864) at Graphics.__proto.loadImage (laya.core.js:1860) at Function.Animation.createFrames (laya.core.js:17617) at Animation.__proto.loadImages ...
来源: Laya_社区 发布时间: 20170719
...是否在 graphics所绘制的区域内 如何获取Sprite上用graphics.drawTexture绘制的texture? 小游戏开放数据域下使用Laya.List绘制了排行榜,但是触摸没有滚动响应 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 问题状态 最新活...
来源: Laya_社区 发布时间: 20170316
...中,会遍历所有的插槽,调用BoneSlot中的draw方法(graphics.drawTexture和graphics.drawSkin) ,将插槽中的纹理通过封装cmd的形式通过方法加入_cmd的队列中,通过_renderAll遍历执行所有_cmd队列中的指令进行渲染从而更新画面 。可以看到在...
来源: Laya_社区 发布时间: 20181107
...sharedCanvas上一次绘制的内容 webgl 绘制graphics出报错 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 问题状态 最新活动: 2017-03-05 11:31 浏览: 1349 关注: 2 人 reven1983 • 2017-03-05 12:11 关键我同一张图,我可能在某...
来源: Laya_社区 发布时间: 20170305
...raphics.fillTexture(tex, 0, 0, 100, tex.height);// 无法显示 p.graphics.drawTexture(tex, 0, 0, 100, tex.height);// 正常显示 忘记说明了,native上显示有问题,网页是正常的 2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20181025
...调整,如果内容不变可以不用设置成true sprite.graphics.drawTexture(texture, 0, 0,texture.width,texture.height); this.addChild(sprite); } LayaUISample.max.js:19468 Uncaught TypeError: Cannot read property 'width' of undefined at Texture.moveUV (LayaUISample.max.js...
来源: Laya_社区 发布时间: 20180725
...制。 开发者也可以使用Laya.Texture的方式,通过Laya.Sprite的drawTexture方式渲染,代码如下: //创建一个url对象; var url:string = Laya.Browser.window.URL.createObjectURL(imgBlob); //加载URL获得HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创...
来源: Laya3.0_文档 发布时间: 20230303
...ya.stage.addChild(this.imgSp); this.imgSp.graphics.drawTexture(rtex); 2020-06-02 0 0 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 有做过类似功能的同学吗 2020-05-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...
来源: Laya_社区 发布时间: 20200529
...e.drawToTexture(Laya.stage.width,Laya.stage.height,0,0); this.ctx.graphics.drawTexture(htmlC, 0, 0,this.ctx.width,this.ctx.height); console.log(htmlC) console.log(htmlC.getPixels(0,0,this.ctx.width,this.ctx.height)) 能搞定图片和texttrue,或者转化Uint8Array了,可是能怎么用啊?怎...
来源: Laya_社区 发布时间: 20191124
...e = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height); }); 报错bitmap._addReference is not a function TypeError: bitmap._addReference is not a function 这是报错地方的代码 /** *<code>Texture</c...
来源: Laya_社区 发布时间: 20180504