• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 334 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0053 秒)

211. 3D灯光与阴影 · LayaAir3.0文档 · LAYABOX [ 60%]

... 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

212. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 60%]

...n"); //调整胖子的相对旋转,相对位移,以及缩放。 pangzi.transform.localRotation = _rotation; pangzi.transform.localPosition = _position; pangzi.transform.localScale = _scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从龙2的节点上移除 drag...

来源: Laya2.0_文档 发布时间: 20210714

213. Effect材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 60%]

...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

214. 场景环境反射(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 59%]

... { 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

215. 自定义shader-地形shader [ 59%]

....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

216. laya.d3.core.MeshSprite3D_API3.0 [ 59%]

...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

217. laya.d3.core.particleshuriken.ShuriKenParticle3D_API3.0 [ 59%]

... 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

218. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 59%]

...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

219. laya.d3.core.SkinnedMeshSprite3D_API3.0 [ 59%]

...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

220. laya.d3.core.trail.TrailSprite3D_API3.0 [ 59%]

...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