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

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

21. MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 [ 92%]

MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 示例代码如下: this.capsule = new Laya.MeshSprite3D(new Laya.CapsuleMesh(0.5, 1)); var capsuleCollider:Laya.PhysicsCollider = this.capsule.addComponent(Laya.PhysicsCollider);//网格触发器 var capsuleShape:Laya...

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

22. 同步龙骨插槽动画方案 [ 92%]

...mArmature.getSlotByName(slotName).getMatrix();     }      public destroy() {         this.mArmature.stop();//停止龙骨动画播放         this.mFactory.off(Laya.Event.COMPLETE, this, this.parseComplete);         this.mArmature.removeSelf();//从显示列表...

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

23. 分享:DrawToCanvas内存释放问题! [ 91%]

...ps://ask.layabox.com/question/1726) if(htmlC&&texture) { texture.destroy(); } //截屏主要代码 count ++; htmlC=sp.drawToCanvas(800,800,0,0);//绘制 当前Sprite 到 Canvas 上,并返回一个HtmlCanvas。 texture= new Texture(htmlC);//将htmlCanvas赋值给texture对象 sp2 = new Sp...

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

24. destroy 报错 [ 91%]

destroy 报错 for(let i = 1; i<= this.createCountList[floor] ; i++)             {                 let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;                 if(floor1)                 {   ...

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

25. timeline destroy的bug [ 90%]

timeline destroy的bug private numTimeLine: Laya.TimeLine;   release() {   this.numTimeLine.offAll();   this.numTimeLine.destroy(); } 我调用代码release时报错,发现core.js中先把_tweenDataList置null然后又引用了 附件 : --> 2017-06-10 添加评论 免费帖 --> 分享 微博 Q...

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

26. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 90%]

...s Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot read property 'destroy' of null     at PhysicsCollider.__proto._onDestroy (laya.d3.js:17738)     at PhysicsCollider.__proto._destroy (laya.c...

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

27. 节点销毁问题 [ 88%]

...请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。</p>          * <p>destroy时会移除自身的事...

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

28. ShurikenParticleInstanceSystem内存统计错误 [ 88%]

...rticleInstanceSystem内存统计错误 ShurikenParticleInstanceSystem类的destroy方法里,统计内存的一段代码漏了,导致内存面板显示会不断增长:   // 原始源码 if (this._instanceParticleVertexBuffer) { this._instanceParticleVertexBuffer._byteLength; this._instancePart...

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

29. destroy节点后,报错 [ 88%]

destroy节点后,报错 /* 从舞台移除模型对象 @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(); } }   或者 /* 从舞台移除模型对...

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

30. Image设置skin的Bug [ 88%]

...置Image设置skin方式加载资源,然后快速关闭界面,Image被 destroy(destroyChild: boolean = true): void {         super.destroy(true);         this._bitmap && this._bitmap.destroy();         this._bitmap = null;     }   2,当前资源加...

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