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

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

151. untiy导出的粒子特效有播放完成的回掉吗? [ 81%]

...D.load(url); this.m_Effect.on(Laya.Event.PLAYED, this, function(){ console.log("PLAYED callback!!"); }) this.m_Effect.on(Laya.Event.PAUSED, this, function(){ console.log("PAUSED callback!!"); }) this.m_Effect.on(Laya.Event.COMPLETE, this, function(){ console.log("COMPLETE ca...

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

152. 调用Laya.Geolocation,程序卡死 [ 81%]

...Laya.Geolocation,程序卡死 if (!Laya.Geolocation.supported) { console.log(11) this.txt.text = "11"; }else{ console.log(3333) this.txt.text = "22"; } 代码运行到这里就不往下运行 了,控制台也不输出,什么问题? 2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE ...

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

153. LayaAir 2.0 模糊滤镜与发光滤镜找不到 [ 81%]

...2.0 模糊滤镜与发光滤镜找不到 我再代码里面打印: console.log(Laya.GlowFilter); console.log(Laya.ColorFilter); console.log(Laya.BlurFilter); 只有ColorFilter能找到,其它都是undefine 2019-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

154. ios 报错 [ 81%]

ios 报错 用LayaPlayer测试会报以下错误,log在附件里面。   附件 : --> log3.zip 2017-09-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知识达人 赞同来自: log里边不会有...

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

155. tab 是否可以做到左右滑动切换view呢? [ 81%]

...an ;     onMouseDown(e : laya.events.Event):void{         console.log("MOUSE_DOWN");         this.on(laya.events.Event.MOUSE_MOVE ,this, this.onMouseMove);         this.onMouseDownX = e.target.mouseX;         this.onMouseDownY = e.target.mouseY;     }     onMouseUp(e...

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

156. 音频-播放演示 [ 81%]

...#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音效"); Laya.SoundManager.playSound("res/sounds/btn.mp3", 1, new Laya.Handler(this, this.onComplete)); } // 播放音乐 onPlayMusic() { console.log("播放音乐"); Laya.SoundManager.playMusic("res/sounds/bgm.mp...

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

157. websocket连接出错 [ 81%]

...var io = require('socket.io').listen(server); server.listen(8888); console.log("服务器启动"); io.on('connection', function (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head&g...

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

158. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 81%]

...Ball = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.vx > t...

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

159. 音频-播放演示 [ 81%]

...stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } function onPlaySound(e) { console.log("播放音效"); SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Han...

来源: Laya_示例 发布时间: 20251209

160. 使用getUserInfo获取的用户信息 [ 81%]

...nfo({ withCredentials:false, lang: 'zh_CN', success: (res) => { console.log(res); // BigData.ins.user = res.data[0]; }, fail: () => { console.log("userInfo"+JSON.stringify("fail")); }, complete: () => { // console.log("userInfo"+JSON.stringify(selfData)); } Res打印出来时空的 附件 :...

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