大约有 339 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0046 秒)
Laya_社区(124) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(36) laya_api(18) Laya_示例(6) Laya3.0_文档(3)
...rdMaterial.SmoothnessSource_MetallicGlossTexture_Alpha; var barrel = scene.getChildByName("Wooden_Barrel") as Laya.MeshSprite3D; var barrel1 = scene.getChildByName("Wooden_Barrel (1)") as Laya.MeshSprite3D; var barrel2 = scene.getChildByName("Wooden_Barrel (2)") as Laya.MeshSprite3D; var barrel3 = s...
来源: Laya2.0_文档 发布时间: 20210714
...oothnessSource_MetallicGlossTexture_Alpha; var barrel:MeshSprite3D = scene.getChildByName("Wooden_Barrel") as MeshSprite3D; var barrel1:MeshSprite3D = scene.getChildByName("Wooden_Barrel (1)") as MeshSprite3D; var barrel2:MeshSprite3D = scene.getChildByName("Wooden_Barrel (2)") as MeshSprite3D; var ...
来源: Laya2.0_文档 发布时间: 20210714
as还能用getChildByName方法吗? as还能用getChildByName方法吗? 要怎么使用啊? Laya.stage.getChildByName("egg"+i); this.getChildByName("egg"+i); Laya.getChildByName("egg"+i); 都不对 2017-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20170517
...Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(...
来源: Laya2.0_文档 发布时间: 20210715
...Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(...
来源: Laya2.0_文档 发布时间: 20210715
... 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
...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
...Ts脚本编写导入ls文件 问题导入后场景显示,但是用scene.getChildByName去抓对象却是空的,然后调试查看Scene下子集都是0 代码流程如下: var scene = Laya.Scene.load("res/LayaMain/main.ls") Laya.stage.addChild(scene); var camera: Laya.Camera = (scene.getChildBy...
来源: Laya_社区 发布时间: 20180118
...(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
... 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