大约有 32 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0027 秒)
...erial.SmoothnessSource_MetallicGlossTexture_Alpha; let barrel = this.scene.getChildByName("Wooden_Barrel"); let barrel1 = this.scene.getChildByName("Wooden_Barrel (1)"); let barrel2 = this.scene.getChildByName("Wooden_Barrel (2)"); let barrel3 = this.scene.getChildByName("Wooden_Barrel (3)"); barrel...
来源: Laya2.0_文档 发布时间: 20210715
...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
...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...
来源: Laya2.0_文档 发布时间: 20210715
...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...
来源: Laya2.0_文档 发布时间: 20210714
...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
...n(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.p...
来源: 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
...ya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scene的getChildByName(“Main Camera”)方法得...
来源: Laya2.0_文档 发布时间: 20210714
...ya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` 在Untiy中,摄像机默认名为“Main Camera”,因此在上述代码中,通过scene的getChildByName(“Main Camera”)方法得...
来源: Laya2.0_文档 发布时间: 20210715