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

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

41. 示例 骨骼动画换装 加不上点击事件 [ 71%]

...成可点击的指针“小手的样子”,求大神解析 function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STO...

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

42. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 71%]

...); })(); function startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = 100; mArmature.y = 200; var rect=new Laya.Rectangle(-200,-2...

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

43. spine动画放大后,遮罩显示不正常 [ 71%]

...     let mFactory = new Templet();         mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);         mFactory.on(Event.ERROR, this, this.onError);         mFactory.loadAni(path);     }      onError() {         trace("error");   ...

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

44. l龙骨动画内存上升 [ 69%]

...;             tem.loadAni(url);             tem.on(Event.COMPLETE, this, function():void {                 longgu = tem.buildArmature(0);                 longgu.pos(dragronX, dragronY);                 parent.addChild(longgu);            ...

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

45. 新手问一个动画的问题 [ 67%]

...          addChild(views);             views.ani1.on(Event.COMPLETE,this,playStop);             views.ani1.play(); 接着在时间中停止,然后画面就空了,难道不是停到动画的最后一帧吗? views.ani1.stop();             var bt:Sprite  = views...

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

46. spine 播放错乱 [ 67%]

...); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos...

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

47. Clip组件Bug:Play方法无法结束循环 [ 66%]

...erval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {             this.destroy();         });         this.frameIndex = 0;         isLoop ? this.toFrameIndex = -1 : this.toFrameIndex = (cols * rows -...

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

48. laya.media.SoundNode [ 65%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...

来源: laya_api 发布时间: 20170422

49. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 64%]

...let = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet.on(Laya.Event.COMPLETE, handler.caller, handler.method); templet.on(Laya.Event.ERROR, this, this.printError); templet.loadAni(url); }  printError(e) { console.error(e); } } //激活启动类 new Main(); 附件 : --> TEST2.zip 2022-05-30 ...

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

50. laya.display.AnimationPlayerBase [ 62%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...

来源: laya_api 发布时间: 20170929