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

大约有 452 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

31. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 84%]

Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 1、引擎和ide版本都是2.1.2 2、点击屏幕会绘制一个光圈特效 3、点击第1次加载资源使用后释放调用Laya.loader.clearTextureRes 4、再点第2次      1、图片代码中指示出必然会...

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

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

...der.load('resources/UI/role/mxxxx.png', Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码如上,代码很简单。   下面是打印了Laya.Resource._idResourcesMa...

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

33. laya.resource.HTMLCanvas [ 82%]

...TMLCanvas  _source : *HTMLCanvas  source : *[read-only] HTMLCanvas  _texture : TextureHTMLCanvasPublic Methods  MethodDefined By  HTMLCanvas(createCanvas:Boolean = false) 根据指定的类型,创建一个 HTMLCanvas 实例。 HTMLCanvas  _getSource():*[override] HTMLCanvas  clear():v...

来源: Laya2.0_api 发布时间: 20190513

34. laya.resource.Texture_API3.0 [ 82%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture" Texture Class Texture Texture 是一个纹理处理类。 Hierarchy Resource Texture Index Constructors constructor Properties _id _sizeGrid _stateNum destroyedImmediately lock name offsetX offsetY sourceHeight sourc...

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

35. 怎么修改Texture的颜色 [ 80%]

怎么修改Texture的颜色 如:我有张大部分像素颜色是白色的.png   在代码里加载后,如果通过代码改变这些像素的颜色,例如把白色改成红色 2020-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

36. laya.net.LoaderManager_API3.0 [ 80%]

...ds cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创建...

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

37. webgl模式下,Texture绘制出现内存泄漏【有demo】 [ 80%]

webgl模式下,Texture绘制出现内存泄漏【有demo】 大家好: 我们使用Layabox制作了一款3D微信小游戏,在绘制排行榜的出现了内存泄漏。   为此,我写了一个仅有排行榜功能的demo。 运行demo后反复打开关闭排行榜,可以看到“内存...

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

38. laya.ani.bone.Templet [ 79%]

...Templet  srcBoneMatrixArr : Array 存放原始骨骼信息 Templet  subTextureDic : Object 存放纹理数据 Templet  TEMPLET_DICTIONARY : Object[static] Templet  tfArr : Array transform数据 Templet  yReverseMatrix : Matrix 反转矩阵,有些骨骼动画要反转才能显示 TempletP...

来源: laya_api 发布时间: 20170929

39. laya.resource.AtlasResource_API3.0 [ 79%]

...ctors constructor Properties _id destroyedImmediately dir frames lock name textures url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event has...

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

40. BlurFilter的strength属性设置到5以上就没效果了 [ 79%]

...{    var htmlC:HTMLCanvas =_self.drawToCanvas(1334,750,0,0);    var _texture:Texture = new Texture(htmlC);    var sp2:Sprite = new Sprite();    sp2.graphics.drawTexture(_texture,0,0,1334,750);    var blurFilter:BlurFilter = new BlurFilter();    blurFilter.strength = 4;    sp2.fi...

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