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

大约有 7 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)

1. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...on, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(this.localPosition, Transform3D._tempVector30, this._localPosition); this.localPosition = this._localPosition; } else { Vector3.add(this.position, translation, this._position); this.position = this._position; } } 平移变换方...

来源: Laya3.0_文档 发布时间: 20251010

2. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p3d.transform.localPosition = new Laya.Vector3(0,5,5); let p3dRenderer = this.p3d.getComponent(Laya.ShurikenParticleRenderer); p3dRenderer.particleSystem.simulationSpeed = 10; } 通过暴露@property( { type :Laya.Sprite3D } )节点类型...

来源: Laya3.0_文档 发布时间: 20251010

3. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 77%]

...ildByName('Scenes').getChildByName('Area').getChildByName(str))).transform.localPosition); } } 四、角色移动 角色移动,实际上就是在间隔很短的时间内,改变角色的位置。在我们的示例中,是通过每40毫秒来循环检查角色行走路线,通过Tween来执行...

来源: Laya3.0_文档 发布时间: 20230303

4. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...tLightCom = spotLight.addComponent(Laya.SpotLightCom); spotLight.transform.localPosition = new Vector3(0.0, 9.0, -35.0); spotLight.transform.localRotationEuler = new Vector3(-15.0, 180.0, 0.0); spotLightCom.color.setValue(Math.random(), Math.random(), Math.random(), 1); spotLightCom.range = 50; spot...

来源: Laya3.0_文档 发布时间: 20251010

5. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...点类型 public p3d: Laya.Sprite3D; onAwake(): void { this.p3d.transform.localPosition = new Laya.Vector3(0,5,5); let p3dRenderer = this.p3d.getComponent(Laya.ShurikenParticleRenderer); p3dRenderer.particleSystem.simulationSpeed = 10; } 通过暴露@property( { type :Laya.Sprite3D } )节点类型...

来源: Laya3.0_文档 发布时间: 20251010

6. 缓动 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...建缓动 Laya.Tween.create(aCube.transform, aCube) .duration(2000) .to("localPosition", Laya.Vector3.ZERO) //设置插值函数,让物体沿曲线路径行动 .interp(Laya.Tween.useCurvePath, path) 运行效果如图: Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新...

来源: Laya3.0_文档 发布时间: 20251010

7. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...sh; render.sharedMaterial = this.batchMat; //随机位置 sprite.transform.localPosition = this._getRandomPosition(positionRanvge); //随机一个颜色索引 let colorIndex = Math.floor(Math.random() * this._colorNums); //设置节点的 Laya.ENodeCustomData.custom_0 为对应的颜色索引 render...

来源: Laya3.0_文档 发布时间: 20251010