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

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

41. Tween循环动画 [ 83%]

...n去循环播放动画 1、tween1的播放完成回调下播放tween2,并clear tween1,tween2的播放完成回调下播放tween1,并clear tween2,用一个变量不断递归循环,来计算循环的次数 Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private functio...

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

42. Sprite loadImage 的时候出现多张图片同时显示 [ 82%]

...Sprite loadImage 的时候出现多张图片同时显示 this.img.graphics.clear(); var imgUrl = (this.flag = !this.flag)? this.imgUrl1 :this.imgUrl2; this.img.loadImage(imgUrl,100,50); 简单的点击sprite切换图片,结果会出现两张图片同时显示的情况 附件 : --> 2018-04-04 添...

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

43. 这种进度条怎么实现? [ 82%]

...WIDTH >> 1,this.CIRCLE_WIDTH >> 1) this.$circleSprite.graphics.clear() this.$circleSprite.graphics.drawCircle((this.DEF_SIZE - this.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - this.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - 20) >> 1, "#fff") this.addChild(this.$circleSprite) this.st...

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

44. 提一个bug [ 82%]

提一个bug Laya的timer,如果使用clear(caller: any, method: Function): void;这个方法,根本无法清理定时器! laya.core.js: 9032行clear的代码里面,完全没有涉及到对this._handlers这个的清理,而在对定时器调用的时候,this._handlers会不断增加,...

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

45. Animation 使用疑问 [ 81%]

...tion; private onBtn2Click(): void { this.body.destroyChildren(); this.body.clear(); this.body.destroy(); } 调试面板中的sprite个DrwaCall都有变化,但是CurMern么有发出变化,是否正常?   2 构造时创建   constructor() {         this.aniBody = new Animation();       ...

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

46. 骨骼动画-Spine事件 [ 81%]

... 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_示例 发布时间: 20240930

47. 内存释放问题 [ 81%]

...下面的_infoPoll 没有发生变化, public dispose(): void { this.ani.clear(); Laya.Animation.clearCache(this.resUrl); this.ani = null; Laya.loader.clearRes(this.resUrl, true); } 我单独写了一个例子,这样释放没有问题,内存明显有变化,但是Laya.loader下面的_infoPoll...

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

48. laya.utils.Timer [ 81%]

...aller:*, method:Function, args:Array = null):void 延迟执行。 Timer  clear(caller:*, method:Function):void 清理定时器。 Timer  clearAll(caller:*):void 清理对象身上的所有定时器。 Timer  frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean...

来源: laya_api 发布时间: 20170929

49. 引擎socket类_onMessage bug [ 81%]

...p;& this._input.bytesAvailable < 1) {             this._input.clear();             this._addInputPosition = 0;         }         var pre: number = this._input.pos;         !this._addInputPosition && (this._addInputPosition = 0);         this._input.pos = th...

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

50. 鼠标交互-Hold [ 81%]

...0.8 }, 300); } else { // 如果未触发hold,终止触发hold Laya.timer.clear(this, this.onHold); } Laya.stage.off(Event.MOUSE_UP, this, this.onApeRelease); } } new Interaction_Hold();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture =...

来源: Laya2.0_示例 发布时间: 20240930