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

大约有 321 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)

41. 其他引擎的Demo-Example_21 [ 83%]

...sGraphics.drawPoly(0, 0, path.concat(), color); } animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } } new PIXI_Example_21();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class P...

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

42. 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

43. 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

44. 这种进度条怎么实现? [ 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

45. 提一个bug [ 82%]

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

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

46. 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

47. 骨骼动画-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_示例 发布时间: 20251209

48. 内存释放问题 [ 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

49. 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

50. 引擎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