大约有 232 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0130 秒)
...的链接 提交 1 个回复 Laya_Fred 赞同来自: 您好,是Texture的bitmap类型为texture2D,引用一次Texture2D资源,image设置texture之后,如果需要销毁资源,可以试下使用image的dispose方法,我们销毁一个image时候,如果直接将引用的texture2D也销...
来源: Laya_社区 发布时间: 20231124
...or1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEv...
来源: Laya_社区 发布时间: 20180302
...0,第一次destroyUnusedResources后,spine再渲染时会从新恢复bitmap,但由于拿不到SpineGLTexture的实例,所以不能给该资源加锁,导致资源引用为0,没有加锁而被destroy掉,从而出现闪烁 附件 : --> LayaTest1.zip 2022-08-20 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20220820
... fish.scoreText.font = "fnt_10103"; // fish.scoreText.cacheAs = 'bitmap'; fish.scoreText.x = fish.scoreGold.width + fish.scoreGold.x - 4; fish.scoreText.y = fish.scoreGold.y + 2; fish.scoreText.text = price; this.scoreBox.addChild(fish.scoreText); kezhiyu • 2018-05-23 10:15 因为绘制...
来源: Laya_社区 发布时间: 20180516
... 3.下载安装 windows下免费的位图字体制作工具 Bitmap Font Generator。 下载地址:[http://www.angelcode.com/products/bmfont/](http://www.angelcode.com/products/bmfont/install_bmfont_1.13.exe) 4.打开软件,选择 Opotion->FontSetting,来设定需要导出的字...
来源: Laya2.0_文档 发布时间: 20201114
...blic class RenderTextureInheritanceRenderTexture BaseTexture laya.resource.Bitmap //RenderTexture 类用于创建渲染目标。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By anisoLevel : int 各向异性等级 BaseTexture currentActive :...
来源: Laya2.0_api 发布时间: 20190513
...享 微博 QZONE 微信 helloworldlv 赞同来自: 加速器环境下tex.bitmap.source是HtmlImageElement。最好还是用官网文档中有spine动画换装的方案 2018-07-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新...
来源: Laya_社区 发布时间: 20180716
...域的texture this._texture = new Laya.Texture(this._htmlC); this._texture.bitmap.enableMerageInAtlas = false; this.zoomImg.graphics.clear(); this.zoomImg.graphics.drawTexture(this._texture, 0, 0, RouletteTableScene.ZOOM_W * 0.5, RouletteTableScene.ZOOM_TARGET_H * 0.4); 2017-10-31 0 0 分享 微...
来源: Laya_社区 发布时间: 20170822
... if (tEnable){ if (this._cacheStyle.needBitmapCache()){ this._cacheStyle.cacheAs="bitmap"; }else { this._cacheStyle.cacheAs=this._cacheStyle.userSetCache; ...
来源: Laya_社区 发布时间: 20190612
...错。 我看了下 Image里面的加载回调,有一个小判断: if(!_bitmap){return;} 就是预防这种报错。 关于这里的使用,有没有那种简单的处理能预防上述情况的发生 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20180510