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

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

31. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 87%]

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

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

32. 游戏遇到个bug, [ 87%]

...很小几率的bug,,报错如下: style为null说明该对象已经destroy了,,但是报错说明仍然在执行改变alpha的缓动,这个缓动没有停止。 游戏代码是已上线的游戏,别的引擎做的,,现在改为layabox,,逻辑上没有变化,, 而且报错...

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

33. Laya 绑定显示内容到骨骼动画 [ 87%]

...rce.x=source.offestX+position.x; source.y=source.offestX+position.y; } }  destroy(destroyChild?:boolean):void{ this.timer.clear(this,this.__updateBinds); this.__bindList.length=0; this.__bindList=null; super.destroy(destroyChild); } }   2. 可绑定到骨骼的内容 /** * 可绑定到骨骼的...

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

34. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 87%]

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

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

35. 疑似clearRes内存泄漏问题 [ 86%]

...ZONE 微信 Laya_Aaron 赞同来自: 销毁未使用资源  Laya.Resource.destroyUnusedResources(); 2019-03-08 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 用destroy(), clearres 不是清理资源 2019-03-08 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: (Laya.Loader.getRes(t...

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

36. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 86%]

...ren();//从显示列表移除龙骨动画子对象 this.mArmatureUnUsed[i].destroy(true);//从显存销毁龙骨动画及其子对象 } } console.warn(this.mArmatureUsed.length); for(let i=0;i < this.mArmatureUsed.length; i++){ if(this.mArmatureUsed[i] != null){ this.mArmatureUsed[i].stop();//停...

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

37. 【LIST无法拖动】参照官方实例做的 [ 85%]

...ckname_;         this.list.removeSelf();         this.list.destroy();         this.removeSelf();         this.destroy();         Laya.stage.addChild(ui);      }     jumpScene()     {            let ge = new GameIEntity();      ...

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

38. 事件函数作用域问题 [ 85%]

...l, ()=>{ if (this.loginDig) { this.loginDig.removeSelf(); this.loginDig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个函数,是不是就是使用lamb表达式就要使用null,不是匿...

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

39. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 85%]

... _map.createMap("res/race.json",viewRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //...

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

40. 释放资源报错 [ 84%]

...: Cannot read property 'off' of null     at SkinnedMeshRenderer.__proto._destroy (laya.d3.js:41972)     at SkinnedMeshSprite3D.__proto.destroy (laya.d3.js:34884)     at SkinnedMeshSprite3D.__proto.destroy (laya.d3.js:43737)   发现           if (this._cacheRootBone){        ...

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