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

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

111. 在微信小游戏真机wx.onShow和wx.onHide中的currTimer的问题 [ 81%]

...er.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTimer); } private function _onHideWX():void { console.log("wx.onHide:"); console.log(Laya.timer.currTimer); } wx.onShow.currTimer == wx.onHide.currTimer 这两个居...

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

112. 无法获取音频的时间长度 [ 81%]

...d/dh/gril1.wav", 1,Laya.Handler.create(this,() => {       }));     console.log(soundChItem.position+"");     console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

113. Layabox web 复制一段文字到剪贴板 [ 81%]

...t: function () { return str; } })  clipboard.on("success", function (e) { console.log("ok:") console.log(e) clipboard.destroy(); }) clipboard.on("error", function (e) { console.log("err:") console.log(e) clipboard.destroy(); })  //确认按钮 this.confirmBtn.onclick = function () { _this.CloseDiv...

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

114. 网络通信 · LayaAir3文档 · LAYABOX [ 81%]

...SS, this, this.processHandler); } private processHandler(data:any): void { console.log("processHandler"); } private errorHandler(error:any): void { console.log("errorHandler"); } private completeHandler(data:any): void { console.log("completeHandler"); } } new LayaSample(); 2.2 GET 上面这个示...

来源: Laya3.0_文档 发布时间: 20250104

115. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 81%]

...alse     }     notleft() {         this.isleft = false         console.log(this.isleft);         /**打印是false,但是update还是在执行*/             }     onright(){         this.isright = true         this.isleft =false     }     notright(){         t...

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

116. 字体相关问题 [ 81%]

...04 12:01 还有个问题: Laya.Font.defaultFont="12px,SimHei"; console.log(Laya.Font.defaultFamily); console.log(Laya.Font.defaultFont); let view:ui.TestUI=new ui.TestUI(); Laya.stage.addChild(view); console.log("font",view.lab2.font); 我设置了defaultFont 但是font输出...

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

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

...mHei", "#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/sound...

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

118. LayaNative 日志打印 [ 81%]

LayaNative 日志打印 console.log在App Android 无法打印日志,什么接口才可以在Android App下打印日志 2018-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你需要...

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

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

...); Laya.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,...

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

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

....Sprite3D.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("COM...

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