大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
...)未被激活的情况下,执行了onEnable和onStart里面的内容,onUpdate是正常没执行的。换成2.0测试版(即beta4)的库后是正常的。怀疑是2.0正式版的库存在问题,我之前也在社区提问问过这个问题,但没人解决,希望您能帮我查证一...
来源: Laya_社区 发布时间: 20181106
...| onStart | 在第1次执行update之前执行,只会执行一次, | | onUpdate | 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onLateUpdate | 每帧更新之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | ...
来源: Laya2.0_文档 发布时间: 20210715
... this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 i...
来源: Laya_社区 发布时间: 20190531
... this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 i...
来源: Laya_社区 发布时间: 20190605
...._trail2D.color = new Laya.Color(1, 1, 1, 1); } //控制物体向右移动 onUpdate(): void { this.owner.x += 5; } //设置宽度曲线 setWidthCurve(value: any[]) { //创建一个新的宽度曲线 const floatKeyframe: Laya.FloatKeyframe[] = []; for (let i = 0; i < value.length; i++) { //创建...
来源: Laya3.0_文档 发布时间: 20251010
... this.camera = this.scene.getChildByName("camera"); } onUpdate(){ let touchCount = this.scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 ...
来源: Laya_社区 发布时间: 20190531
...tAchieve.on(Laya.Event.CLICK, this.achievememtsettings); } // 每帧执行 onUpdate(): void { extendLib.steamCallback(); } onInit() { alert(extendLib.initializeSteam()); } achievememtsettings(): void { if (extendLib.initializeSteam()) { // 解锁成就 extendLib.setAchievement("NEW_ACHIEVEMENT_1_0")...
来源: Laya3.0_文档 发布时间: 20251010
....0中,Component具有完整的生命周期,即onAwake,onStart,onEnable,onUpdate,onLateUpdate,onDisable,onDestroy,不再使用_onEnable,_onDisable等下划线函数。 _onEnable,_onDisable等下换线函数仍然给内部使用 对比Component, Script增加了交互行为,即onTriggerEnter, o...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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