大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
...来自: //当动画播放到百分之五十到六十之间时进行克隆 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
...创建实例 */ __proto.create=function(){ if (this.json)return SceneUtils.createByData(null,this.json); return null; } return Prefab; })() 附件 : --> 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20181102
...tps://ldc.layabox.com/doc/?nav=zh-as-6-1-8 2、屏蔽APK下的弹框报错 if( window.conch ) { window.conch.showAlertOnJsException(false); }3、你可以通过项目构建,选择不同的Native版本号,默认是最新版本0.9.9版本 4、config.js是项目构建之后可以看到的,你自...
来源: Laya_社区 发布时间: 20170914
...vate ChangeSize() { console.log("---------------") if(Laya.Browser.window.innerHeight < Laya.Browser.window.innerWidth) { console.log("横屏") } else { console.log("竖屏") } } 代码就这些,为什么...
来源: Laya_社区 发布时间: 20230516
...lines.length - 1; i >= 0; i--){ var line = this.lines[i]; line.state++; if(line.state > 7){ this.lines.splice(i, 1); } this.cutLayer.graphics.drawLine(line.x1, line.y1, line.x2, line.y2, "#ffffff", this.lineBorder - line.state); } 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180411
...交 2 个回复 唐sir 赞同来自: 找到方法了,这样可以解决 if (@available(iOS 11.0, *)) { _wkWebView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; } 2019-09-03 0 0 分享 微博 QZONE 微信 +浩*灬 赞同来自: 能问下wkwebview构建...
来源: Laya_社区 发布时间: 20190903