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

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

571. spine 回调函数的参数没有效果 [ 72%]

... 没有改变都是0,spine 输出文件见附件   sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { }   var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 : --> 归档.zip 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

572. 执行了这个 Laya.timer.clear(this, this.onLoop);还是会继续执行onLoop [ 71%]

...mation动画播放完毕后去执行方法? layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 hit事件执行效率探讨 执行回调函数时报is not a function 怎...

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

573. 关于下拉列表 [ 71%]

...ia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 然后我用 this.small_map.labels = “1,2,3,4”来更改下拉数据,只要一更新数据,上面就自动触发,那个...

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

574. 没有预加载的图片怎么获取width和height ? [ 71%]

...eying • 2017-01-18 12:21 再图片加载完成后,可以先侦听一个Event.LOADED事件,再回调里去获取getBounds值 qq502416708 • 2017-01-18 15:32 能写几句示例吗?图片是网络传过来的用户头像 cuixueying • 2017-01-19 15:38 就是获取你图片所在容器的getBo...

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

575. [LayaAir3]list.selectHandler [ 71%]

...e.log(this.btn.selected); }break; shiyang • 2024-10-28 09:48 可以判断event.type == click执行你的逻辑 学思无涯 • 2024-10-28 10:43 @shiyang:赞赞赞

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

576. 【音效BUG】在游戏失焦后再次返回游戏导致音效播放异常的问题与解决方案 [ 71%]

...为失焦而自动暂停,监听游戏失焦事件:Laya.stage.on(Laya.Event.BLUR,this,this.method); 在失焦的回调里设置: Laya.SoundManager.musicMuted = true; Laya.SoundManager.stopMusic(); 将正在播放的音乐路径存为成员变量;   2.监听游戏获取焦点事件: 监听...

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

577. 可视遮罩层Layer(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 71%]

...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板不参...

来源: Laya2.0_文档 发布时间: 20210715

578. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 71%]

...             this.addChild(bg2);             bg2.on(laya.events.Event.MOUSE_DOWN,this,test); } ================== public static function createSprite(url:String,c:Boolean = false):Sprite {             var sp:Sprite = new Sprite();             sp.loadImage(url); ...

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

579. 可视遮罩层Layer(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 71%]

...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板...

来源: Laya2.0_文档 发布时间: 20210715

580. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 71%]

....Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2...

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