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

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

631. Laya.LocalStorage.getJSON空对象在微信小游戏中被处理为空字符串 [ 67%]

...N('equipDataArray'); console.log('equipDataArray ', equipDataArray, ' |'); if (equipDataArray === null) { equipDataArray = [ { icon: 'img/weapon/gun0.png', weaponIndex: 0, weaponGrade: 1 }, { icon: 'img/weapon/gun1.png', weaponIndex: 1, weaponGrade: 1 }, { icon: 'img/weapon/gun2.png', weaponIndex: 2...

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

632. Laya发布安卓接入穿山甲联盟sdk在安卓9.0版本以上无法运行 [ 67%]

...er.RunningAppProcessInfo processInfo : manager.getRunningAppProcesses()) { if (processInfo.pid == android.os.Process.myPid()) { return processInfo.processName; } } return null; }if (!Utils.getProcessName(this).equals("YOUR_SECOND_PROCESS_NAME")) { MobileAds.initialize(this); } else { WebView.setData...

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

633. layacmd 安装不成功 [ 67%]

... "layacmd" "-g" npm ERR! node v6.9.5 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! electron@1.7.9 postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.7.9 postinstall script 'node install.js'. npm ERR! Make sure you have the latest version of nod...

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

634. 怎么把matter物理世界的左边界和右边界连在一起 [ 67%]

...圆的位置,可是圆移动过去不再继续向前飞,直接自由落体,if(this.ball.position.x<1) { this.ball.position={x:790,y:this.ball.position.y} } if(this.ball.position.x>799) { this.ball.position={x:10,y:this.ball.position.y} } 请问谁有什么刚好的办法实现我需要的这...

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

635. 为何我加载spine的动画drawcall会那么高,shader的指标也很高 [ 67%]

...eteCaller;             this.m_curLoadingUrl = url;             if(this.isLoaded(url) == false)             {                 this.mFactory.loadAni(url);             }             else             {                 this.buildAmature();         ...

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

636. 求救 Laya2.0下的Particle2D问题 [ 67%]

...码(控制飞船喷射的尾焰粒子),现在转到2.0出问题了 if (!isFrame) { //这个是开关,按键松开时isFrame=false,按下播放尾焰特效后就置为true Laya.loader.load('../bin/testflame.part', Laya.Handler.create(this, (setting) => { let frame = new Laya.Particle2D(s...

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

637. 请问一下Js模式下关于AssistiveTouch要如何设置,demo的代码实在是改不出来,conch又没有API可以查,求助求助!! [ 67%]

... 提交 2 个回复 xwzx001 赞同来自: conch.showAssistantTouch(false); if(Browser.window['conch']) {     __JS__('conch.showAssistantTouch(false)'); } 这个要在js下怎么改啊?真心不会。。就是想要隐藏laya自带那个圈圈,编译环境是js,不是ts、as 2017-05-23 0 1 ...

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

638. 如何通过代码控制prefab上面的时间轴动画animation? [ 67%]

...r arr:Array = target["_aniList"]; for each(var an:FrameAnimation in arr) { if(an.name=="show") { an.play(); } } 2019-02-15 1 0 分享 微博 QZONE 微信 小声飞 赞同来自: 直接用这个scene 的实例  .show.play(0) 就行了 比如 var ss:soldieritem =new soldieritem(); ss.show.play(0); ...

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

639. ios safari横屏下,鼠标点击不正确,且旋转屏幕时显示错位 [ 67%]

...tion(){ setTimeout(function(){ var orientation=Browser.window.orientation; if (orientation !=null && orientation !=_$this._previousOrientation && _me._isInputting()){ Input["inputElement"].target.focus=false; } _$this._previousOrientation=orientation; if (_me._isInputting())return; i...

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

640. 飞机大战出现的问题注册了类New的时候报错未定义 [ 67%]

...背景图到了下面不可见的位置,立即调整位置到最上边 if(this.bg1.y+this.y>=852){ this.bg1.y-=852*2; } if(this.bg2.y+this.y>=852){ this.bg2.y-=852*2; } } return BackGround; })(Laya.Sprite);         附件 : --> 2019-10-18 添加评论 免费帖 --> 分享 微博 QZONE ...

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