大约有 289 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
Laya_社区(177) Laya3.0_api(81) Laya2.0_文档(12) Laya3.0_文档(10) Laya2.0_示例(4) Laya2.0_api(2) laya_api(2) Laya_示例(1)
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
...mArmature.getSlotByName(slotName).getMatrix(); } public destroy() { this.mArmature.stop();//停止龙骨动画播放 this.mFactory.off(Laya.Event.COMPLETE, this, this.parseComplete); this.mArmature.removeSelf();//从显示列表...
来源: Laya_社区 发布时间: 20200618
...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
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
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
...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
...请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。</p> * <p>destroy时会移除自身的事...
来源: Laya_社区 发布时间: 20181121
...rticleInstanceSystem内存统计错误 ShurikenParticleInstanceSystem类的destroy方法里,统计内存的一段代码漏了,导致内存面板显示会不断增长: // 原始源码 if (this._instanceParticleVertexBuffer) { this._instanceParticleVertexBuffer._byteLength; this._instancePart...
来源: Laya_社区 发布时间: 20230424
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
...置Image设置skin方式加载资源,然后快速关闭界面,Image被 destroy(destroyChild: boolean = true): void { super.destroy(true); this._bitmap && this._bitmap.destroy(); this._bitmap = null; } 2,当前资源加...
来源: Laya_社区 发布时间: 20191024