大约有 289 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0121 秒)
Laya_社区(177) Laya3.0_api(81) Laya2.0_文档(12) Laya3.0_文档(10) Laya2.0_示例(4) Laya2.0_api(2) laya_api(2) Laya_示例(1)
...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
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
... } } this.destroy(); }) } destroy() { super.destroy(true); } } } new laya.Sprite_Guide(); 附件 : --> 2020-01-19 添加评论 ...
来源: Laya_社区 发布时间: 20200119
...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
...做视频播放的功能,版本是 1.7.4_beta 发现Laya.Video对象在destroy后内存占用不会被释放。 参考Google的各个结果,表示H5,video对象存在删除节点后并不能马上释放内存的BUG,如果是频繁的视频播放,则会引起快速的内存增长,对于...
来源: Laya_社区 发布时间: 20170515
..."); 我龙骨是这样调用的,后面不用了,我就 this.skeleton.destroy(); templet.destroy(); 但是从谷歌浏览器上的memory上或者手机上看,内存没减少,一直增加,谷歌上take snapshot,查看后发现龙骨都是增加,没有减少,请问这是为什么,...
来源: Laya_社区 发布时间: 20210811
...property ‘_physicsUpdateList’of null 求指导~~ __proto._onDestroy=function(){ (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this)); var physics3D=Laya3D._physics3D; delete PhysicsCompone...
来源: Laya_社区 发布时间: 20190318
使用了destroy()之后,还需要手动移除侦听事件和引用吗? 假如我新建了一个testObj类。现在我对一个testObj对象执行了destroy(),那么这个对象的事件侦听是不是都移除掉了?这个对象是只从显示列表移除掉了吗?会从内存销毁掉吗...
来源: Laya_社区 发布时间: 20170914
...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
Laya调用Destroy报错 在调用this.destory();的时候,资源没有全部加载出来的时候,用微信的laya库插件会报错,下面图上面的报错,用本地插件又不会,我们资源是从服务器上去下载拉取,请问这种有什么解决方案吗? 附件 : --> 2021-...
来源: Laya_社区 发布时间: 20210123