大约有 196 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)
Laya3.0_api(79) Laya_社区(64) Laya2.0_文档(17) Laya2.0_api(15) laya_api(14) Laya_示例(4) Laya3.0_文档(3)
为什么Sprite3D.name 都是"" 呢? 那getChildByName还有什么用?? 为什么Sprite3D.name 都是"" 呢? 那getChildByName还有什么用?? unity导出来的 .ls 里的sprite3D name不是空的 [而且也不会有人把unity里的gameObject名字去每个都改成""吧] 附件 : --> 2...
来源: Laya_社区 发布时间: 20171221
...s")); //删除原始资源中包含的默认相机 var camera = this.scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.removeSelf(); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); camera.sky = skyBox; ...
来源: Laya_示例 发布时间: 20241002
...3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; direc...
来源: Laya2.0_文档 发布时间: 20210715
...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
...tor3(8, 8, 8); this.layaMonkeyMeshSprite3D = this.layaMonkey.getChildAt(0).getChildByName("LayaMonkey"); //添加盒型碰撞器 var boxCollider = this.layaMonkeyMeshSprite3D.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(this.layaMonkeyMeshSprite3D.meshFilter.sharedMesh.boundingBox); t...
来源: Laya_示例 发布时间: 20241002
...(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
...题 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 使用getChildByName()无法得到子节点对象 laya2.2 导出场景物理碰撞问题 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 怎么获取对象的坐标 laya2.0 3d物理碰撞穿透问...
来源: Laya_社区 发布时间: 20170914
...yaAir里的显示对象添加到matter.js里的物理引擎世界里 使用getChildByName()无法得到子节点对象 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 怎么获取对象的坐标 如何识别此对象被destroy了? TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式和...
来源: Laya_社区 发布时间: 20190306