大约有 97 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Animation 先clear当前的动画, 然后从浏览器缓存 加载下一个动画会闪一下,这个怎么解决? 2018-05-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 闪一...
来源: Laya_社区 发布时间: 20180507
...: 0.8 }, 300); } else // 如果未触发hold,终止触发hold Laya.timer.clear(this, onHold); Laya.stage.off(Event.MOUSE_UP, this, onApeRelease); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = ...
来源: Laya_示例 发布时间: 20251130
...复 cuixueying 赞同来自: 每次重新绘制的时候调一次graphics.clear,对之前的绘制进行清理,然后绘制新的矢量图即可,,,当然如果你要实现动态的drawPie效果,只需要添加一个计时器,让drawPie的角度是一个变量,在计时器里动态的...
来源: Laya_社区 发布时间: 20170606
...进度条的效果 this.mMask.graphics.clear(); Laya.timer.loop(10,this,this.showMask); public showMask():void { this.mMask.graphics.clear(); this.mMask.graphic...
来源: Laya_社区 发布时间: 20171101
... mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) } function playEnd() { mLabelSprite.remov...
来源: Laya_示例 发布时间: 20251130
...清除矢量图的时候 线条不见了 精灵还在怎么处理 graphics.clear()这个清楚掉了线条 而我在Stat.show();上看到的Sprite并没有被清除掉,怎么解决 这个优化问题 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180322
... 2019-05-22 0 2 分享 微博 QZONE 微信 xiaobai 赞同来自: graphics.clear(); 加个清理 2019-05-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 teddywu 相关问题 sprite旋转以后,但是原来碰...
来源: Laya_社区 发布时间: 20190520
...eenComplete() { evalBgColor(); } function renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, getHexColorString()); } function getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0;...
来源: Laya_示例 发布时间: 20251130
...een = Laya.Tween, Ease = Laya.Ease; character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } createDurationCrontroller() { const Event = Laya.Event; let durationInput = this.createInputWidthLabel("Duration:", '2000', 400, 1...
来源: Laya2.0_示例 发布时间: 20251130
...onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //o...
来源: Laya2.0_示例 发布时间: 20251130