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

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

31. destroy节点后,报错 [ 78%]

...@param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } }   或者 /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChi...

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

32. 切换后台时,引擎如何判断是否停止定时器? [ 78%]

...rameLoop);     }      private onFrameLoop():void{         console.log("delta:",Laya.timer.delta);     }      private onFocus(): void {         console.log("onFocus:");     }      private onBlur(): void {         console.log("onBlur:");     } }...

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

33. Dialog 关闭效果无效 [ 78%]

...ll, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

34. 射线检测报错,outHitInfo.sprite3D=null; [ 78%]

...is.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D();...

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

35. [LayaAirIDE3]xcode切入切出声音不播放 [ 78%]

...te onBlur() {         // 暂停所有需要停止的逻辑         console.log("onBlur");         SoundManager.Instance.pauseBGM();         // // 部分机型包内不生效         SoundManager.Instance.pauseAllEffects();     }    private onFocus() {         if (!SoundMa...

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

36. 华为快游戏接入与发布调试指南(TypeScript-小游戏适配文档-华为快游戏) [ 77%]

...,默认的时候该选项为log等级。如下图所示。这样会包括consolelog日志,以及报错日志。如果改为只是设置为error,则只显示报错日志,不会显示console日志。无论是error还是log都会在发布后,输出对应日志等级的相关输出信息,...

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

37. 使用localToGlobal方法获取list单元格错误不准确 [ 77%]

... flag ? true : false;     return ele.localToGlobal(point, flag);  }   console.log(box); var targetXY = Utils.localToGlobal(box, false);  console.log(targetXY)       附件 : --> 2017-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

38. 摄像机的viewportPointToRay报错 [ 76%]

...计产生射线方法,通过2D坐标获取与屏幕垂直的一条射线 console.log( PanelMgr.mainCamera); PanelMgr.mainCamera.viewportPointToRay(this.pointRay, this.ray); (this.owner as Laya.Scene3D).physicsSimulation.rayCast(this.ray,this.hitresult); console.log(Laya.MouseManager.instance.mouse...

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

39. 没有预加载的图片怎么获取width和height ? [ 76%]

.../laya/assets/comp/image.png");     Laya.stage.addChild(older);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height);      older.scale(2,2);     console.log(older.scaleX,older.scaleY,older....

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

40. 淘宝创意互动发布指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 76%]

...s,a.js 和 b.js ```javascript //a.js 中的内容: var a = function(){ console.log("a") } //b.js 中的内容: var b = function(){ console.log("b") } ``` 然后我们引用 js,调用2个方法,在 H5 上是可以正常输出内容的。 ```javascript require("a.js") require("b.js") a(); //...

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