大约有 3 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0020 秒)
...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
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
...eight,0,0); if(!texture) texture = new Texture(htmlCanvas); else { texture.destroy(true); texture = new Texture(htmlCanvas); } IconSpr.graphics.drawTexture(texture); } private function onRun():void { img.x += xNum; img.y += yNum; if(img.x < 0 || img.x > (1280 - 156)) { xNum = -xNum; } if(img.y...
来源: Laya_社区 发布时间: 20180113