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

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

431. Text设置为bitmap后,会生成对应的文字纹理存在显存,这部分纹理可以手动释放吗? [ 53%]

...关的链接 提交 1 个回复 bpmf_d 赞同来自: 可以手动  直接.destroy 就可以了 也可以Laya.Resource.destroyUnusedResources(); 销毁当前没有被使用的资源 2019-05-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

432. 自定义对话框设置zOrder后,关闭时报错 [ 53%]

...xt = '' + this.count; } else { Laya.timer.clear(this,this.countdown); this.destroy(true); } }这是一个继承自laya.ui.Dialog的对象,设置this.zOrder = 100;导致numChildren异常,关闭时报错。 开发者往往并不能确定确切的zOrder值,可能预设一个较大的值,如果...

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

433. unity 通过laya 导出 灵异事件 [ 53%]

...这个~~  MissingReferenceException: The object of type 'Mesh' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. UnityEngine.Object.get_name () (at C:/buildslave/unity/build/Runtime/Export/Scripting/UnityEng...

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

434. laya.display.Graphics_API3.0 [ 53%]

...onstructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate...

来源: Laya3.0_api 发布时间: 20231115

435. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 53%]

...lo.disconnect();         }         /** 销毁*/         public destroy(): void {             this.close();             this.pomelo = null;             if(this.mDecorate)this.mDecorate.destroy();             this.mDecorate = null;         }     }   /** socke...

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

436. Clip组件Bug:Play方法无法结束循环 [ 53%]

....on(Laya.Event.COMPLETE, this, () => {             this.destroy();         });         this.frameIndex = 0;         isLoop ? this.toFrameIndex = -1 : this.toFrameIndex = (cols * rows - 1);         this.play(0, isLoop ? -1 : (cols...

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

437. laya.d3.component.physics.Collider [ 53%]

...ed Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已销毁。 Component3D enable : Boolean 获取是否启用。 Component3D id : int[read-only] 获取唯一标识ID。 Component3D  isSingleton : Boolean[override] [read-only] ...

来源: laya_api 发布时间: 20170929

438. laya.d3.component.AttachPoint [ 52%]

... attachBones : Vector.<String>挂点骨骼的名称。AttachPoint destroyed : Boolean[read-only] 获取是否已销毁。 Component3D enable : Boolean 获取是否启用。 Component3D id : int[read-only] 获取唯一标识ID。 Component3D isSingleton : Boolean[read-only] 获取是否为...

来源: laya_api 发布时间: 20170929

439. [LayaAir3]3.0版本资源销毁后_referenceCount不会变成0,2.0版本是正常的可以变为0 [ 52%]

...ite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码如上,代码很简单。   下面是打印了Laya.Resource._idResourcesMap的截图   工程见附件,也很简单就是官方的2d Demo加了上面的代码 附件 : --> LayaProject2...

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

440. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...; }; //彻底销毁清理一个粒子特效对象 Clean(): void { if (this.destroyed) { return; } this.Recover(); if (this._particle && !this._particle.destroyed) { this._particle.removeSelf(); this._particle.destroy(true); this._particle = null; } this._shuriKenParticle3D = null; this._shur...

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