大约有 581 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0121 秒)
Laya3.0_api(280) Laya2.0_api(125) laya_api(89) Laya_社区(70) Laya2.0_文档(8) Laya3.0_文档(7) Laya2.0_示例(1) Laya_示例(1)
...d 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics destroy():void 销毁此对象。 Graphics drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawCircleCmd 绘制圆形。 Graphics drawCurves(x:Number, y:Number, point...
来源: Laya2.0_api 发布时间: 20190513
...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
...子节点的索引位置。参数是什么 区块地图增加对象 对象destroy()后的还会耗用内存吗?页面的时间轴动画会跟着被清空吗? 问题状态 最新活动: 2019-12-06 17:30 浏览: 978 关注: 1 人
来源: Laya_社区 发布时间: 20191206
....Sprite = new Laya.Sprite();` 3. `//将sp内部引用设置为null` 4. `sp.destroy();` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...
来源: Laya2.0_文档 发布时间: 20210715
...sManager.clear(); console.log("图集已清空"); 销毁管理器 //接口 destroy(): void 完全销毁管理器,释放所有资源。销毁后管理器不可再使用。 //使用示例 // 销毁管理器 atlasManager.destroy(); console.log("管理器已销毁"); 三、使用建议 合理设置图...
来源: Laya3.0_文档 发布时间: 20260131
...例 var sp:Sprite = new Sprite(); //将sp内部引用设置为null sp.destroy(); ``` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收...
来源: Laya2.0_文档 发布时间: 20210715
...ing100.prototype; console.log("kk7") __proto.cleanMe=function(){ this.load.destroy(true); } console.log("kk8") loading100.FINISH="FN"; console.log("kk9") return loading100; })(Sprite) //class ui.loadingjzaUI extends laya.ui.View var loadingjzaUI=(function(_super){ function loadingjzaUI(){ this.loadi...
来源: Laya_社区 发布时间: 20170725
...些属性,需重新赋值此属性才可生效。 ShurikenParticleSystem destroyed : Boolean[read-only] 获取是否已销毁。 GeometryFilter duration : Number粒子运行的总时长,单位为秒。ShurikenParticleSystem emission : Emission 获取发射器。 ShurikenParticleSystem em...
来源: laya_api 发布时间: 20170929
...er(): Laya.ColorFilter { return this.colorFilterNone(0xffffff); } public destroy() { if (this.targets != null) { this.targets = null; } ColorTool.instance = null; } } } 用法 let sp:Laya.Sprite=new Laya.Sprite(); ColorTool.getInstance().addColorTarget(sp); ColorTool.getInstance().targetsCha...
来源: Laya_社区 发布时间: 20180930
...含URL.basePath的部分 __proto.onComplete=function(content){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用formatPath进...
来源: Laya_社区 发布时间: 20190419