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

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

151. 官方案例里摄像机绕物体旋转脚本的问题 [ 27%]

...s.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAngles.y = 0; if (!this.canRotation_Y) this.targetAngles.x = 0; //Lerp. thi...

来源: Laya_社区 发布时间: 20190224

152. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...2D节点还是2D预制体的根节点,它们的Runtime是没有onStart、onUpdate、onLateUpdate方法的。 注意2:onOpened、onClosed方法是只有Scene2D节点的Runtime有,其它情况是没有的。 3.3 不同的使用UI组件方式 相比自定义的组件脚本,UI组件脚本可以...

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

153. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...is.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.timer.delta; if (!isNaN(this.lastMouseX) && !isNaN(this.lastMouseY) && this.isMouseDown) { Laya.InputManager.hasKeyDown(87) && this.moveForward(-this.s...

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

154. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 21%]

...etComponent方法 * 此方法为虚方法,使用时重写覆盖即可 */ onUpdate(): void { if (!this.target || !this.camera) return; this.target.transform.position.vsub(this.curpos, this.delatpos); this.camera.transform.position.vadd(this.delatpos, this.delatpos); this.camera.transform.position =...

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