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

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

41. 注册函数里面 事件侦听函数的执行域 的详解 [ 84%]

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

42. Animation未释放资源的引用 [ 84%]

Animation未释放资源的引用 先上源码 destroy(destroyChild: boolean = true): void { this.stop(); super.destroy(destroyChild); this._frames = null; this._labels = null; }animation的destory方法,只是将_frames赋值为null,并没有对_frames的graphics进行destroy, 这样会导...

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

43. 新手引导在ios浏览器表现异常 [ 83%]

... }                 }                 this.destroy();             })         }         destroy() {             super.destroy(true);         }     } } new laya.Sprite_Guide(); 附件 : --> 2020-01-19 添加评论 ...

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

44. laya.utils.Timer_API3.0 [ 83%]

...imer scale Accessors delta Methods callLater clear clearAll clearCallLater destroy frameLoop frameOnce loop once pause resume runCallLater runTimer toString Constructors constructor new Timer(autoActive?: boolean): Timer Defined in laya/utils/Timer.ts:34 创建 Timer 类的一个实例。 Parameters...

来源: Laya3.0_api 发布时间: 20231115

45. Laya.Video内存泄漏问题 [ 82%]

...做视频播放的功能,版本是 1.7.4_beta 发现Laya.Video对象在destroy后内存占用不会被释放。 参考Google的各个结果,表示H5,video对象存在删除节点后并不能马上释放内存的BUG,如果是频繁的视频播放,则会引起快速的内存增长,对于...

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

46. 龙骨删除后内存不减少 [ 82%]

..."); 我龙骨是这样调用的,后面不用了,我就  this.skeleton.destroy();  templet.destroy(); 但是从谷歌浏览器上的memory上或者手机上看,内存没减少,一直增加,谷歌上take snapshot,查看后发现龙骨都是增加,没有减少,请问这是为什么,...

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

47. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 82%]

...property ‘_physicsUpdateList’of null 求指导~~       __proto._onDestroy=function(){          (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this));          var physics3D=Laya3D._physics3D;         delete PhysicsCompone...

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

48. 使用了destroy()之后,还需要手动移除侦听事件和引用吗? [ 82%]

使用了destroy()之后,还需要手动移除侦听事件和引用吗? 假如我新建了一个testObj类。现在我对一个testObj对象执行了destroy(),那么这个对象的事件侦听是不是都移除掉了?这个对象是只从显示列表移除掉了吗?会从内存销毁掉吗...

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

49. Texture自动恢复还是存在另外的问题 [ 82%]

...his=this;         var url=this._bitmap.url;         if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){             Laya.loader.load(url,Handler.create(this,function(bitmap){                 _$this._bitmap=bitmap;         ...

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

50. Laya调用Destroy报错 [ 82%]

Laya调用Destroy报错 在调用this.destory();的时候,资源没有全部加载出来的时候,用微信的laya库插件会报错,下面图上面的报错,用本地插件又不会,我们资源是从服务器上去下载拉取,请问这种有什么解决方案吗? 附件 : --> 2021-...

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