大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0048 秒)
...** 等到视频流准备就绪 */ var interval = setInterval(function () { if (!LayaAir3D.video.videoWidth) { return; } laya.utils.Browser.document.body.appendChild(LayaAir3D.video); clearInterval(interval); }, 1000 / 50); }); }).catch(function (error) { onError({ message: error.message }); }); 2018...
来源: Laya_社区 发布时间: 20180217
...18-01-05 15:14 这个看了,在as3里面要怎么用了,我这样加了if(Browser.window.conch && Browser.window.conch.setOnBackPressedFunction){Browser.window.conch.setOnBackPressedFunction(()=>{});},但是发布会出错 rabee • 2018-01-05 15:24 应该是写法搞错了 rabee ...
来源: Laya_社区 发布时间: 20180105
...oid { //Laya.Scene.open("GameView.scene"); if (!Main.gameView) { Main.gameView = new GameView(); } Main.gameView.startGame(); Laya.stage.addChild(Main.gameView); } } 附件 : --> 2019-05...
来源: Laya_社区 发布时间: 20190510
...然后返回5,结果就导致了我在onLoop打印1之前做的判断,if(typeof(this.obj) == "undefined") return;没有效果,导致在执行5的时候用undefined调用函数报错。 Prajna • 2018-04-12 09:33 请问,为什么会出现这种情况?onLoop函数不是一个原...
来源: Laya_社区 发布时间: 20180411
....Event.MOUSE_UP, this, function () { var str = ""; if (!hit.sprite3D) { str = "点击选取的几何体"; }else{ str = hit.sprite3D.name + " "; } console.log(str); }); 2017-09-15 添加评论 免...
来源: Laya_社区 发布时间: 20170915
...来自: //当动画播放到百分之五十到六十之间时进行克隆 if (0.6>(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime-Math.floor(heroAni.getCurrentAnimatorPlayState(0)._normalizedTime))>0.5) 根据动画当前播放的百分比进行判断 2018-10-25 0 1 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20181025
...oad(url); videoPlayer.play(); let videoChecker = setInterval(function () { if (videoPlayer.ended) { //请求奖励 console.log('请求奖励'); clearInterval(videoChecker); } }, 500);---使用DOM方式可以,将canvas的zIndex设置为-1可以显示 laya.device.media.Video 方式还未找到解...
来源: Laya_社区 发布时间: 20170830
...。正常的应用是不需要调用此方法的。 private void Hook() { if(!isExit) { isExit = true; Toast.makeText(this, "在按一次退出程序", Toast.LENGTH_SHORT).show(); new Timer().schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method stub isExit = false; ...
来源: Laya_社区 发布时间: 20170811
...private */ __proto.onTargetMouseDown=function(e){ if ((this.isLockedFun)&& !this.isLockedFun(e))return; this.event(/*laya.events.Event.END*/"end"); this._clickOnly=true; this._lastOffset=0; this._check...
来源: Laya_社区 发布时间: 20201118
... var offsetY=mouseY-this._lastY; if(/macintosh|window/.test(navigator.userAgent.toLowerCase())) { console.log("mouseX:=["+ mouseX+"] mouseY:=["+mouseY+"] _lastX:=["+this._lastX+"] _lastY:=["+this._lastY+...
来源: Laya_社区 发布时间: 20180720