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

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

51. Uncaught TypeError: Cannot read property '_tf' of null [ 82%]

...enGuide1(_guideImage );     Tween.clearAll(_guideImage);   _guideImage.destroy(true);   _guideImage.dispose();   _guideImage = null; }   public function tweenGuide1(image:Image):void {    image.x = 0;    image.y = 0;    image.scale(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600...

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

52. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...景的管理一、IDE中的场景1.1 新建场景1.2 场景划分1.3 autoDestroyAtClosed属性1.4 mouseThrough属性二、代码中使用2.1 场景类2.2 打开场景2.3 关闭场景2.4 场景的加载页面2.5 销毁和垃圾回收场景的管理 LayaAir3.0继续延用2.0开发思路为组件化,...

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

53. Tween回调方法里如何带参数? [ 82%]

...:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){     sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

54. 微信IphoneX 绘制圆形遮罩,当destroy时会卡死 [ 82%]

微信IphoneX 绘制圆形遮罩,当destroy时会卡死 iphoneX 12.3.1 微信 7.0.4   let sprite = new Laya.Sprite()  let render = new Laya.Sprite(); render.graphics.drawCircle(0, 0, 40, "#ff0000"); this.render = render;  sprite.mask = render;   当调用 sprite.destroy();时,游戏就卡死了...

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

55. 百度小游戏 内存不断增大的情况 [ 82%]

...is.removeUi,[testView]); } __proto.removeUi=function(ui){ if(ui!=null){ ui.destroy(); this.isOpen=false; } }  代码主要是做了重复打开关闭一个界面,调用界面的destroy方法,运行一段时间发现内存在不断增大。请问这是BUG还是我的代码写的不对。 Laya引...

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

56. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 82%]

...#### *version :2.0.2beta Update:2019-5-8* ​ Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象...

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

57. 资源回收的清理不干净的bug [ 81%]

....getChildAt(i).name)                 myscene.getChildAt(i).destroy();             }             console.log("recycle func1 finished: ", myscene.numChildren);         }))     }      recycle2() {         var myscene = new Laya.S...

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

58. tiledmap有时尺寸不正确 [ 81%]

...reate(this, this.onCompleteHandler)); } /** * 销毁当前地图 */ public destroy():void{ if (this._mTiledMap) this._mTiledMap.destroy(); if (this._mLevelConf) this._mLevelConf = null; this._mLoadState = ESceneLoadState.eLoadNull; } /** * 地图数据加载完成后的回调函数 */ private onComp...

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

59. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 81%]

怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 角色,放几个技能后内存从 60 M 长到 90M,清理后,内存没下降。   清理方法            override public function destroy(destroyChild:Boolean = true):void {             if...

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

60. Layabox web 复制一段文字到剪贴板 [ 81%]

...d.on("success", function (e) { console.log("ok:") console.log(e) clipboard.destroy(); }) clipboard.on("error", function (e) { console.log("err:") console.log(e) clipboard.destroy(); })  //确认按钮 this.confirmBtn.onclick = function () { _this.CloseDivAndInfoMesg(this); } // 创建弹出层 遮...

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