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

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

71. 请问引擎中是否支持类似Flash中擦除效果 BlendMode.ERASE [ 78%]

...同来自: 你参考上面的地址,有个地方需要设置成cacheas为bitmap就可以了。 2017-12-23 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: https://ask.layabox.com/question/9919 //缓存为静态图像,一定要设置bitmap 要混合的图层.cacheAs="bitmap" //rendertarget...

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

72. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 78%]

...是2.0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0):void { 变成了Textrue2d了, 像以前1.x版本Textrue 还能用htmlcanvas,现在不能用了。而且直接强传入,会报错...

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

73. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 78%]

...把一个以前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

74. Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 [ 77%]

...       this._destroyed=true;             var bit=this._bitmap;             if (bit){                 bit._removeReference(this._referenceCount);                 if (bit.referenceCount===0||force)                     b...

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

75. 引擎2.0.2版本,调用Resource.destroyUnusedResources问题 [ 77%]

...图的纹理资源。在之后的界面中如果用到了这个url对应的bitmap的时候。都会通过recoverBitmap进行一次重新加载,导致gpuMem一直上涨。   请问这个bug在哪里修复呢,引擎修改了很多东西,没办法直接用之后的版本。 附件 : --> test.rar...

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

76. laya.resource.Texture_API3.0 [ 77%]

...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

77. Sprite-缓存为静态图像 [ 76%]

...random() * Laya.stage.height; } //缓存为静态图像 textBox.cacheAs = "bitmap"; } } new Sprite_Cache();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Sprite_Cache { constructor() { //...

来源: Laya2.0_示例 发布时间: 20241001

78. 关于cacheAS问题 [ 75%]

...cheAS问题 技术文档中提到UI频繁刷新不推荐使用cacheAS中的bitmap方式,那么滑动list的时候Sprite,drawCell,Shader都会增大到45,但是不使用cache的时候都为50,这个时候推荐使用cacheAS中的bitmap吗?关键是什么时候算频繁刷新心里没有一个...

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

79. 图集动画内存释放 [ 75%]

...Texture = Loader.getRes("res/hero/1.jpg"); if(texture1 && texture1.bitmap) { texture1.bitmap.releaseResource(); } 2018-04-10 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sangya 相关问题 laya针对页游耗用内存大的问...

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

80. drawcall优化问题 [ 74%]

...2 但是实际上 fps都一样低 最后的必杀器还是要用cacheas=‘bitmap’,试问 相邻层级用同一张图集来降低drawcall的意义何在 我看不到任何fps提升 问题2 从左边那个图看出 我交叉渲染图集(背景图片用了图集里面的bg,另外一个用了...

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