大约有 289 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)
Laya_社区(177) Laya3.0_api(81) Laya2.0_文档(12) Laya3.0_文档(10) Laya2.0_示例(4) Laya2.0_api(2) laya_api(2) Laya_示例(1)
...plet删不掉 /** *释放纹理 */ __proto.destroy=function(){ this._isDestroyed=true; var tTexture; var $each_tTexture; /*for each*/for($each_tTexture in this.subTextureDic){ tTex...
来源: Laya_社区 发布时间: 20190704
Button销毁时,未对_clickHandler进行回收 源代码: destroy(destroyChild = true) { super.destroy(destroyChild); this._bitmap && this._bitmap.destroy(); this._text && this._text.destroy(destroyChild); this._bitmap = null; this._text = null; this._clickHandler = null; this....
来源: Laya_社区 发布时间: 20200514
...else if(e.keyCode == 50 || e.keyCode == 98) { if(this.te != null){ this.te.destroy(); this.te = null; this.sk.destroy(); this.sk = null; } } } private teComplete():void{ this.sk = this.te.buildArmature(0); this.sk.x = 400; this.sk.y = 700; this.sk.play(0, true); Laya.stage.addChild(this.sk); } Demo...
来源: Laya_社区 发布时间: 20190320
子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn...
来源: Laya_社区 发布时间: 20190308
...dBtn.on(Event.CLICK, this, onAddBtn); } private function onDesBtn():void { destroy(); } private function onAddBtn():void { startFun(); } public function startFun():void { mAniPath = "Dragon/Dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni(mAniP...
来源: Laya_社区 发布时间: 20170406
...要注释掉 timer 的清理操作。 /** * <p>销毁此对象。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。</p> * <p>destroy时会移除自身的事情监听,自身...
来源: Laya_社区 发布时间: 20220224
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
...生成同类型的对象面板可正常打开;若在关闭时设成 this.destroy() 或 this.destroy(false),新面板打开时会报错 cannot read property 'xxx' of null。请问 this.removeSelf() 是否能将面板相关的资源占用完全清除,或有什么更好的方法?请指教! 2...
来源: Laya_社区 发布时间: 20170914
bug:laya.Scene.destroy var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){//这里缓存了长度,但是在 __proto.destroy=function(destroyChild){ (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,dest...
来源: Laya_社区 发布时间: 20181128
TimeLine调用destroy报错&执行完成后回到起点 使用的是官方的TimeLine demo 问题1:如果在onComplete中调用destroy报错 问题2【用法问题请无视】:如果注释掉“turnUp”, 在动画执行完成后, 图片的x,y坐标变成了起始坐标 报错信...
来源: Laya_社区 发布时间: 20170327