大约有 67 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
为什么Sprite3D.name 都是"" 呢? 那getChildByName还有什么用?? 为什么Sprite3D.name 都是"" 呢? 那getChildByName还有什么用?? unity导出来的 .ls 里的sprite3D name不是空的 [而且也不会有人把unity里的gameObject名字去每个都改成""吧] 附件 : --> 2...
来源: Laya_社区 发布时间: 20171221
...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
... 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
... 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
...(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
通过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
getChildByName这个方法应该怎那么使用?为什么我的一直报错 我想通过导出来的3D场景找到主相机,用的是Scene.getChildByName这个方法。一直报错,找不到这个方法??? 2018-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20180409
使用getChildByName()无法得到子节点对象 page2._list.renderHandler = new Handler(this, onRender); function onRender(cell,index){ //如果索引不再可索引范围,则终止该函数 if(index > json.length)retu...
来源: Laya_社区 发布时间: 20180717
...时候,我在代码中动下面圆盘的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
...题 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 使用getChildByName()无法得到子节点对象 laya2.2 导出场景物理碰撞问题 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 怎么获取对象的坐标 laya2.0 3d物理碰撞穿透问...
来源: Laya_社区 发布时间: 20170914