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

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

141. Box2D使用Destory join报错? [ 44%]

...)未被激活的情况下,执行了onEnable和onStart里面的内容,onUpdate是正常没执行的。换成2.0测试版(即beta4)的库后是正常的。怀疑是2.0正式版的库存在问题,我之前也在社区提问问过这个问题,但没人解决,希望您能帮我查证一...

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

142. LayaAir的组件化开发(TypeScript-IDE篇(TS)-组件化开发相关) [ 39%]

...| onStart | 在第1次执行update之前执行,只会执行一次, | | onUpdate | 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onLateUpdate | 每帧更新之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | ...

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

143. 加载.lh文件 运行后黑屏 无法显示 [ 36%]

...  this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount();         if (1 === touchCount){             //判断是否为两指触控,撤去一根手指后引发的touchCount===1             i...

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

144. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 36%]

...  this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount();         if (1 === touchCount){             //判断是否为两指触控,撤去一根手指后引发的touchCount===1             i...

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

145. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

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

146. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 33%]

...   this.camera = this.scene.getChildByName("camera");     }     onUpdate(){         let touchCount = this.scene.input.touchCount();         if (1 === touchCount){             //判断是否为两指触控,撤去一根手指后引发的touchCount===1     ...

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

147. Steam扩展实例 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

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

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

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

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

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

150. 官方案例里摄像机绕物体旋转脚本的问题 [ 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