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

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

61. Skeleton骨骼动画内存泄漏 [ 87%]

....destroy=function(){ if (!this._destroyed){ this._destroyed=true; if (this.bitmap){ this.bitmap._removeReference(this._referenceCount); if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.ge...

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

62. 使用 setPixels 设置像素,会同时修改掉其他图片的像素 [ 87%]

...置像素,会同时修改掉其他图片的像素;就几句代码 let bitmap:Laya.Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是...

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

63. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 87%]

..._stateNum ? this._state :this._stateNum-1; this._sources && (this._bitmap.source=this._sources[index]); if (this.label){ this._text.color=this._labelColors[index]; if (this._strokeColors)this._text.strokeColor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getR...

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

64. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 87%]

...D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 ​ 所以在2D中,同一个图集中的多个不同 Texture 是共用的一个 Bitmap。...

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

65. 1.7.18beta少方法? [ 86%]

...D, 0, xoffset - 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (xoffset + 1 <= _w) && (gl.texSubImage2DEx(true, WebGLContext.TEXTURE_2D, 0, xoffset + 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (yoffset - 1 >= 0) && (gl.texSubImage...

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

66. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 86%]

...D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 ​ 所以在2D中,同一个图集中的多个不同 Texture 是共用的一个 Bitmap。...

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

67. 关于微信小游戏关系链的问题 [ 86%]

...kTexture=new Texture(Browser.window.sharedCanvas);       rankTexture.bitmap.alwaysChange=true; console.log(rankTexture)       LayaUISample.scoreview.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height);     }); var rankTexture=new Texture(Browser.window.sharedC...

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

68. 关系链报错,没有找到window [ 85%]

...系链相关,链接:https://ask.layabox.com/question/13181 并且找到bitmap._addReference关键字,改成下面: if(bitmap&& bitmap._addReference)    bitmap._addReference(); 这个地方的bug已经没有   但是在微信程序中报错,这个报错的js文件是开放域的j...

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

69. laya.device.media.HtmlVideo_API3.0 [ 84%]

...e/media/HtmlVideo" HtmlVideo Class HtmlVideo html多媒体数据 Hierarchy Bitmap HtmlVideo Index Constructors constructor Properties destoryedImmediately lock name url uuid video DEBUG Accessors cpuMemory destroyed gpuMemory height id obsolute referenceCount width cpuMemory gpuMemory Methods _addRe...

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

70. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 84%]

...byteArray,翻译成h5后data为image? package { import flash.display.Bitmap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public cl...

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