• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 315 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)

121. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 68%]

...dateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest.rar 2019-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

来源: Laya_社区 发布时间: 20190722

122. 定时器清理不对称的问题。 [ 68%]

...); 在条件满足后清理定时器,目前只有如下接口 Laya.timer.clear(this,onLoop); 导致的问题:我本来有三个任务,需要分别清理,但现在清理一个,就都清掉了。 三个任务的逻辑都是一样的,只是参数不同,参数是动态的,没有办法提...

来源: Laya_社区 发布时间: 20171107

123. 怎么停止当前的定时器? [ 68%]

...013用户 赞同来自: Laya.timer.loop(5000,this,function a(){ Laya.timer.clear(this,a); }); 皮哥yyds! 2020-10-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a372853273 相关问题 Laya.timer.loop()如何停止 Animator 如何...

来源: Laya_社区 发布时间: 20180201

124. 关于打包App后Texture.getPixels此方法不能使用 [ 68%]

...lse {       Browser.canvas.size(width, height);       Browser.canvas.clear();       Browser.context.drawTexture(this, -x, -y, this.width, this.height, 0, 0);       var info:* = Browser.context.getImageData(0, 0, width, height);     }     return info.data; } 这个方法在打包APP...

来源: Laya_社区 发布时间: 20171030

125. drawToCanvas的问题 [ 68%]

..., this, ()=> { angle +=1; if(angle > 360) { angle = 0; } sp.graphics.clear(); sp.graphics.drawPie(128,128,128,0,angle,"0xff0000"); var tex = sp.drawToTexture(256,256,0,0); //var html:Laya.HTMLCanvas = sp.drawToCanvas(256,256,0,0); //img.loadImageSource(html.source,true); //html.clear(); //html...

来源: Laya_社区 发布时间: 20190520

126. LayaBox用Matter.js时无法清理显示对象 [ 68%]

...);时可以同时清除刚体和显示对面 但是使用this.Matter.World.clear(this.engine.world);清理整个场景时,只有刚体被清除了 显示对象还在 2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

来源: Laya_社区 发布时间: 20181025

127. 被遮罩的对象的子显示对象再添加遮罩,子显示对象的遮罩显示不正确 [ 68%]

...dateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest.rar 2019-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

来源: Laya_社区 发布时间: 20190722

128. 节点销毁问题 [ 68%]

...左右拖动好象有问题 laya1.7.9beta版 关于removechild、destory、clear的问题 问题状态 最新活动: 2018-11-21 17:23 浏览: 1033 关注: 2 人 15818760256 • 2018-11-21 17:22 this是当年的MainView的类,这个MainView是继承了UI界面的,如果destroy会一起remove掉...

来源: Laya_社区 发布时间: 20181121

129. 泄漏问题,望排查 [ 68%]

...:03 好的,谢谢 刘大明 • 2021-09-23 10:27 timer修改建议:1:clearclearAll里面移除 this._map[handler.key] = null和handler.key = ""这两句 :2:runTimer里移除this._map[handler.key] = null 3:_recoverHandler里this._map[handler.key] = null这一句换成delete thi...

来源: Laya_社区 发布时间: 20210915

130. setSubPixels画布擦除不掉 [ 68%]

... tex.width; let h = tex.height; ctx.size(w,h); ctx.asBitmap = true; // ctx.clearRect(0,0,w,h); let _targets= ctx['_targets']; _targets.start(); ctx.clear(); this.drawTex(ctx,this.bUrl,x,0); // this.drawTex(ctx,this.cUrl,x,0); ctx.flush(); _targets.end(); _targets.restore(); let dt = _targets.getData...

来源: Laya_社区 发布时间: 20230328