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

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

141. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

....0中,Component具有完整的生命周期,即onAwake,onStart,onEnable,onUpdate,onLateUpdate,onDisable,onDestroy,不再使用_onEnable,_onDisable等下划线函数。 _onEnable,_onDisable等下换线函数仍然给内部使用 对比Component, Script增加了交互行为,即onTriggerEnter, o...

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

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

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

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

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

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

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

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

145. 3D中摄像机绕物体旋转该如何实现? [ 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_社区 发布时间: 20170714

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

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