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

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

571. laya.display.Graphics [ 53%]

...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

572. drawTexture 画出来的数据会有以前的数据 [ 53%]

...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

573. Ts简单对象池 [ 52%]

...子节点的索引位置。参数是什么 区块地图增加对象 对象destroy()后的还会耗用内存吗?页面的时间轴动画会跟着被清空吗? 问题状态 最新活动: 2019-12-06 17:30 浏览: 978 关注: 1 人

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

574. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 50%]

....Sprite = new Laya.Sprite();` 3. `//将sp内部引用设置为null` 4. `sp.destroy();` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收期...

来源: Laya2.0_文档 发布时间: 20210715

575. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 49%]

...sManager.clear(); console.log("图集已清空"); 销毁管理器 //接口 destroy(): void 完全销毁管理器,释放所有资源。销毁后管理器不可再使用。 //使用示例 // 销毁管理器 atlasManager.destroy(); console.log("管理器已销毁"); 三、使用建议 合理设置图...

来源: Laya3.0_文档 发布时间: 20260131

576. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 49%]

...例 var sp:Sprite = new Sprite(); //将sp内部引用设置为null sp.destroy(); ``` 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配(而不是对象删除)会触发垃圾回收。 垃圾回收...

来源: Laya2.0_文档 发布时间: 20210715

577. 分包后, 资源加载问题 [ 49%]

...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

578. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 48%]

...些属性,需重新赋值此属性才可生效。 ShurikenParticleSystem destroyed : Boolean[read-only] 获取是否已销毁。 GeometryFilter  duration : Number粒子运行的总时长,单位为秒。ShurikenParticleSystem  emission : Emission 获取发射器。 ShurikenParticleSystem  em...

来源: laya_api 发布时间: 20170929

579. 颜色滤镜 差值变化 [ 47%]

...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

580. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 45%]

...含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