大约有 232 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
...码: destroy(destroyChild = true) { super.destroy(destroyChild); this._bitmap && this._bitmap.destroy(); this._text && this._text.destroy(destroyChild); this._bitmap = null; this._text = null; this._clickHandler = null; this._labelColors = this._sources = this._strokeColors = null;...
来源: Laya_社区 发布时间: 20200514
...D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 所以在2D中,同一个图集中的多个不同 Texture 是共用的一个 Bitmap。...
来源: Laya2.0_文档 发布时间: 20210715
...泄露 5、恢复资源逻辑可以参考Texture中的函数recoverBitmap 2、角色资源 1、角色如果不能换肤,可以直接参考常规UI特效使用方式 2、角色可以换肤(目前我的项目就是全部可以换肤) 1、需要自己手动管理Templet...
来源: Laya_社区 发布时间: 20201128
...系链相关,链接:https://ask.layabox.com/question/13181 并且找到bitmap._addReference关键字,改成下面: if(bitmap&& bitmap._addReference) bitmap._addReference(); 这个地方的bug已经没有 但是在微信程序中报错,这个报错的js文件是开放域的j...
来源: Laya_社区 发布时间: 20180408
...ock name offsetX offsetY sourceHeight sourceWidth url uuid DEBUG Accessors bitmap cpuMemory destroyed gpuMemory height id obsolute referenceCount uv valid width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy disposeBitmap ...
来源: Laya3.0_api 发布时间: 20231115
...把一个以前AS3写的翻页效果移植过来。我发现LayaAir没有BitmapData的draw方法 var sprite_:Sprite = new Sprite(); var bitmap_:BitmapData = new BitmapData(_loader.width, _loader.height); bitmap_.draw(_loader, new Matrix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4);...
来源: Laya_社区 发布时间: 20170414
bitmap渲染问题 做法是:有一个画布,负责每一帧,把动画渲染到画布上,画布大小1600*650,固定不变,hs画出的效果和as3画出的效果不一样,导致超过画布的区域动画显示不出来还会出现人物渲染有问题(走到边界右边边界后会...
来源: Laya_社区 发布时间: 20151105
this.bitmap.activeResource is not a function. 排行榜主域绘制开放数据域sharedCanvas时候报错。代码如下:var rankTexture = new Laya.Texture(Laya.Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); spri...
来源: Laya_社区 发布时间: 20190920
排行榜渲染时,提示 this.bitmap.activeResource is not a function。 渲染排行榜时,报this.bitmap.activeResource is not a function 的提示。然后开放域的数据在主域中是能正常拿到的,就是渲染不出来。请问哪位大神知道这是什么原因呢?有没有...
来源: Laya_社区 发布时间: 20191104
... this._destroyed=true; var bit=this._bitmap; if (bit){ bit._removeReference(this._referenceCount); if (bit.referenceCount===0||force) b...
来源: Laya_社区 发布时间: 20190704