大约有 334 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0053 秒)
Laya_社区(176) Laya2.0_文档(60) Laya3.0_api(24) Laya_示例(21) Laya2.0_api(20) laya_api(19) Laya3.0_文档(14)
... 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方向,可通过弧度值设定,并且也没有衰减和光照范围,...
来源: Laya3.0_文档 发布时间: 20241014
...n"); //调整胖子的相对旋转,相对位移,以及缩放。 pangzi.transform.localRotation = _rotation; pangzi.transform.localPosition = _position; pangzi.transform.localScale = _scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从龙2的节点上移除 drag...
来源: Laya2.0_文档 发布时间: 20210714
...ild(new MeshSprite3D(PrimitiveMesh.createSphere())) as MeshSprite3D; earth.transform.position = new Vector3(0, 0, 0); //创建EffectMaterial材质 var material:EffectMaterial = new EffectMaterial(); //加载地球贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function...
来源: Laya2.0_文档 发布时间: 20210715
... { teapot = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; teapot.transform.position = new Vector3(0, 1.75, 2); teapot.transform.rotate(new Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat:PBRStandardMaterial = new PBRStandardMaterial(); //开启该材质的反射 pbrMat...
来源: Laya2.0_文档 发布时间: 20210715
....ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function ()...
来源: Laya_示例 发布时间: 20241119
...Flags id is3D layer meshFilter meshRenderer numChildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt g...
来源: Laya3.0_api 发布时间: 20231115
... is3D layer numChildren parent particleRenderer particleSystem scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt g...
来源: Laya3.0_api 发布时间: 20231115
...er.getChildByName("girl1") as Laya.Sprite3D; //模型缩放 this.roleModel.transform.localScale = new Laya.Vector3(0.8,0.8,0.8); //获取角色动画组件 this.roleAni = this.roleModel.getComponentByType(Laya.Animator) as Laya.Animator; //动画完成事件监听 this.roleAni.on(Laya.Event.COMPLETE...
来源: Laya_社区 发布时间: 20171113
...d is3D layer meshFilter numChildren parent scene skinnedMeshRenderer timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt g...
来源: Laya3.0_api 发布时间: 20231115
...ags id is3D layer numChildren parent scene timer trailFilter trailRenderer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChi...
来源: Laya3.0_api 发布时间: 20231115