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

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

21. laya.display.BitmapFont [ 92%]

...用Text.unregisterBitmapFont 时,默认会销毁。 BitmapFont  getCharTexture(char:String):Texture 获取指定字符的字体纹理对象。 BitmapFont  getCharWidth(char:String):Number 获取指定字符的宽度。 BitmapFont  getMaxHeight():Number 获取最大字符高度。 BitmapFont...

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

22. 在Canvas模式下 drawTexture出错 [ 92%]

在Canvas模式下 drawTexture出错 WebGL模式下正常 Canvas模式下 在短时间内连续调用drawTexture和destroy会报错 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageEleme...

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

23. 最近在用laya做资源优化的时候,发现一个问题,就是把图片资源从内存中释放掉后,下次想再显示这个图片的时候就出现不显示,然后要重现new才可以 [ 92%]

...与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 销毁Texture使用的图片资源,保留texture壳,如果下次渲染的时候,发现texture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清理texture里面使用的图片资源...

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

24. laya.display.BitmapFont [ 91%]

...用Text.unregisterBitmapFont 时,默认会销毁。 BitmapFont  getCharTexture(char:String):Texture 获取指定字符的字体纹理对象。 BitmapFont  getCharWidth(char:String):Number 获取指定字符的宽度。 BitmapFont  getMaxHeight():Number 获取最大字符高度。 BitmapFont...

来源: laya_api 发布时间: 20170929

25. 关于bitmap的useNum属性 [ 89%]

...0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这个值是指引用texture的数量,你的两个sprite引用的是同一个texture,所以最后的结果是1,这个没有问题,如果要释放texture,你首先要保证其他显示对象对他已经没有引用再去做销毁! 2017...

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

26. laya.resource.Texture [ 88%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher Object Texture 是一个纹理处理类。 Public Properties PropertyDefined By  bitmap : Texture2D ...

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

27. 内存和显存的释放 [ 88%]

...和释放,大于512*512的要手动管理。 1.如何让大于512*512的texture也像小于512*512的texture一样在别的地方存有引用的情况下释放显存? 2.小于512*512的texture对象 resouresManager 只是管理了显存大小吗?内存如何管理?   2017-11-07 添加评论...

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

28. 分享:DrawToCanvas内存释放问题! [ 87%]

...t laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//被截屏对象 private var htmlC:HTMLCanvas;//保存截屏后返回的HtmlCanvas对象 private var texture:Textu...

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

29. laya.d3.resource.Texture2D [ 86%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames Texture2DProperties | Methods Packagelaya.d3.resourceClasspublic class Texture2DInheritanceTexture2D BaseTexture laya.resource.Resource Texture2D 二维纹理。 Public Properties Hide Inherited Public Properties Show Inher...

来源: laya_api 发布时间: 20170929

30. 大图集会自动释放被销毁的纹理吗 [ 85%]

... 如题。Laya内部有大图集功能。如果我使用了一张64x64的Texture,使用完毕之后,调用了Texture.destory(true)函数。那么当大图集所有区域都填充满了之后,大图集会将64x64的区域标记销毁掉,然后填充其它的64x64纹理吗? 2017-12-07 添加...

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