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

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)

2131. 调用Laya.Geolocation,程序卡死 [ 71%]

...location,程序卡死 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

2132. laya转换的as的安卓工程,如何获取进入前台跟后台的事件 [ 71%]

...何获取进入前台跟后台的事件 Laya.stage.on("visibilitychange", this, this._onVisibilitychange) 这个方法跟监控焦点的方法好像都不行,一到安卓机子上就监控不了了 2020-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

2133. android 使用LayaAir Native SDK 0.9.13打包程序闪退 [ 71%]

...or in MediaPlayer 01-13 03:14:15.153: I/LayaBox(8475): release JSWebSocket this=acad15b0 deletgate=ac34b288 01-13 03:14:15.153: I/LayaBox(8475): release JSWebSocket this=ac6378b0 deletgate=ac9999f0 01-13 03:14:15.154: I/LayaBox(8475): release JSWebSocket this=ac640750 deletgate=ac9631c0 01-13 03:14:...

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

2134. 侦听加速器运动在ios手机下无法监听 [ 71%]

...ios手机下无法监听 Laya.Accelerator.instance.on(Laya.Event.CHANGE, this, this.monitorAccelerator); 在android手机中是没有问题的,在ios手机无法监听这个事件 附件 : --> 2020-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

2135. 关于闭包的使用,chrome没问题,layaair有问题 [ 71%]

...容相关的链接 提交 2 个回复 chasel 赞同来自:   chrome里的this 和 layaair里的this不一样 2018-09-07 0 0 分享 微博 QZONE 微信 fengzv 赞同来自: js不是这样用的 要么bind要么箭头函数 2018-09-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

2136. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 71%]

...tOther.x, potOther.y] distanceJoint.selfAnchor = [potSelf.x, potSelf.y];  this.owner.addComponentIntance(distanceJoint);   }报错信息如下: Node:the component is singleton,can't add the second one.   翻看源码后发现有这么一段判断单例组件的限制 __proto.addComponentIntance...

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

2137. 请教Laya.timer.once如何设置回调参数 [ 71%]

...coverBefore:Boolean = true):void 但是照这个写了 Laya.timer.once(800,this,sh,[1,3,4]) 之后,在回调函数sh 里面 收到的不是数组,请问这个正确的传参是怎么传的? 2017-08-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

2138. 分享:Skeleton如何监听播放完成事件! [ 71%]

...画,会自动触发Event.COMPLET事件 skeleton.player.on(Event.COMPLETE,this,onComplete);2、当skeleton.play(0,false) 第二个参数为false时,当前动画播放完成后,会自动触发Event.STOPED事件,而不是Event.COMPLETE事件 skeleton.on(Event.STOPPED, this, completeHandler); 20...

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

2139. SkyBoxMaterial材质详解(ActionScript-3D基础(AS3)-天空材质详解) [ 71%]

...Material.load("res/threeDimen/skyBox/DawnDusk/SkyBox.lmat", Handler.create(this, function(mat:SkyBoxMaterial):void { //获取相机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.mat...

来源: Laya2.0_文档 发布时间: 20210715

2140. 龙骨动画播放感觉少了纹理 [ 71%]

...on.scaleX = -1; } bone.addChild(skeleton); skeleton.on(Laya.Event.STOPPED, this, this.playCom, [bone]); skeleton.play(bone.direction, false);     播放方式就和官方的一样  或者说是不是不支持叠加模式啊? 附件 : --> 2017-12-25 添加评论 免费帖 --> 分享 微博 QZONE...

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