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

大约有 46 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

31. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 73%]

...的3D对象实例化完成后,第一次更新时执行*/ public _start(state:Laya.RenderState):void{ //获取被绑定脚本的模型,需等待角色实例化完成 //获取有动画组件的内层模型(.lh资源导出时会在角色外包裹一层sprite3D) this.roleModel = this.owner.getCh...

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

32. 构建apk后,java报错 [ 72%]

...d for ipv4 neighbor 2018-11-26 18:35:06.521 1071-1071/? D/cnss-daemon: ndm_state: 2 2018-11-26 18:35:06.521 1071-1071/? D/cnss-daemon: attr type: 0x1 2018-11-26 18:35:06.521 1071-1071/? D/cnss-daemon: NDA_DST received: 192.168.3.194 ul: 562996158113984 2018-11-26 18:35:06.521 1071-1071/? D/cnss-daem...

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

33. Cannot read property 'offCanplay' of null [ 72%]

...ops' of undefined 初始化Laya3D.init()后设置横屏等,获取的Laya.state为null 遍历子对象的时候多出两个null 发布微信小游戏,报错Cannot read property 'events' of undefined Cannot read property 'events' of undefined 实例碰撞体报错,Cannot read property 'btSphereS...

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

34. 请问如何给所有按钮点击事件增加一个音效 [ 65%]

...return;             }             !_selected && (state = stateMap[e.type]);         } 2017-10-20 1 0 分享 微博 QZONE 微信 l329303161 赞同来自: Laya.stage.on('click', this, ()=>{     Laya.SoundManager.playSound("../bin/wav/click_button.mp3"); }) 找到...

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

35. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 64%]

...了吗 扬了二正 • 2018-10-11 20:25 wxtool.postMsgToOpenDataContext({ state: 'init', openId: GlobalData.getInstance().openId }); this.rank = new Laya.Sprite(); this.box_rank.addChild(this.rank); Laya.Browser.window.sharedCanvas.width = this.box_rank.width; Laya.Browser.window.sharedCanvas.heigh...

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

36. 射线检测报错,outHitInfo.sprite3D=null; [ 64%]

...og("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); }  private onMouseDown...

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

37. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 63%]

...x.bar.shareCount += 1; gameex.bar.clearCountDown(); gameex.snakeSelf.updateState(EN_SNAKE_STATE_NORMAL); gameex.snakeSelf.setLength(3) gameex.buffManager.buildBuff(EN_SNAKE_BUFF_ID_1, gameex.snakeSelf, [4000]); // gameex.snakeSelf.speed = gameex.snakeSelf.speedBak gameex.resume() gameex.gameInfo.vis...

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

38. 两个问题都关于LayaAir的ios真机 [ 62%]

...件我稍微改了下,为了实现按下的时候有个变暗的效果 statenum是1的按钮, /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。 * @param e Event 对象。 */ protected function...

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

39. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 57%]

...同来自: var xmlString="<data>"+ "<dir name='shi' num='10000' state='已集结' time_pro='' isOpen='true'>"+ "<file num='1000' ok='ok' isOpen='true'/>"+ "<file num='1000' ok='ok' isOpen='true'/>"+ "<file num='1000' ok='ok' isOpen='true'/>"+ "<file num='1000' ok='ok...

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

40. socket通讯返回数据 [ 55%]

...ect {} Error: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.     at Socket.__proto.send (file:///K:/laya/mylaya12/bin/libs/laya.core.js:13509:16)     at new Game (file:///K:/laya/mylaya12/bin/js/LayaSample.js:17:21)     at file:///K:/laya/mylaya12/bin/js/LayaSample.js:45:1...

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