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

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

1. 为什么Sprite3D.name 都是"" 呢? 那getChildByName还有什么用?? [ 100%]

为什么Sprite3D.name 都是"" 呢? 那getChildByName还有什么用?? 为什么Sprite3D.name 都是"" 呢? 那getChildByName还有什么用??   unity导出来 .ls 里sprite3D name不是空 [而且也不会有人把unity里gameObject名字去每个都改成""吧]     附件 : --> 2...

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

2. 对象池3D问题 [ 88%]

...e(new Laya.Vector3(0,-Math.PI/2,0)) //漫反射贴图 var tietu=layaMonkey.getChildByName("denglongyu").getChildByName("denglongyu") var tietutu=tietu.skinnedMeshRender.sharedMaterial; tietutu.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg") var zombieAnimator = layaMonkey.get...

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

3. 2.6.1物理bug [ 85%]

... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...

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

4. 2.6物理问题 [ 84%]

... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...

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

5. rigidBody.applyForce 物体不会移动 [ 83%]

...(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var littleGirl: Laya.Sprite3D = scene.getChildByName( "Girl" ) as Laya.Sprite3D; scene.ad...

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

6. 通过getChildByName找到dialog节点使用show方法后, 再次getChildByName查找, 结果为null [ 81%]

通过getChildByName找到dialog节点使用show方法后, 再次getChildByName查找, 结果为null let dialog = new laya.ui.Dialog();  dialog.name = 'Dialog' parentNode.addChild(dialog);    let childNode = parentNode.getChildByName('Dialog'); childNode.show();   console.log(parentNode.get...

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

7. getChildByName这个方法应该怎那么使用?为什么我一直报错 [ 81%]

getChildByName这个方法应该怎那么使用?为什么我一直报错 我想通过导出来3D场景找到主相机,用是Scene.getChildByName这个方法。一直报错,找不到这个方法??? 2018-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

8. 使用getChildByName()无法得到子节点对象 [ 80%]

使用getChildByName()无法得到子节点对象    page2._list.renderHandler = new Handler(this, onRender);         function onRender(cell,index){             //如果索引不再可索引范围,则终止该函数             if(index > json.length)retu...

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

9. 父物体旋转会导致子物体世界坐标系不正确?(附demo) [ 79%]

...时候,我在代码中动下面圆盘transform.positionthis.block = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.ge...

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

10. sprite3D类型对象怎么检测碰撞? [ 77%]

...题 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 使用getChildByName()无法得到子节点对象 laya2.2 导出场景物理碰撞问题 怎么讲layaAir里显示对象添加到matter.js里物理引擎世界里 怎么获取对象坐标 laya2.0 3d物理碰撞穿透问...

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