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

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

1. [LayaAir3]3.0 Image使用的Texture不在_idResourcesMap里,没办法gc清,image执行destory的时候也没有清 [ 100%]

... 1 个回复 Laya_Fred 赞同来自: 您好,是Texture的bitmap类型为texture2D,引用一次Texture2D资源,image设置texture之后,如果需要销毁资源,可以试下使用image的dispose方法,我们销毁一个image时候,如果直接将引用的texture2D也销毁掉,其他...

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

2. 请问Texture2D如何用base64字符串构建对象 [ 85%]

请问Texture2D如何用base64字符串构建对象 给模型贴图的时候需要用base64位字符串。官方api中Texture2D的load方法的参数说明为 : Texture2D地址 。这个地址好像只能传入图片的绝对路径,如何使用base64加载呢?   附件 : --> 2018-05-18 添...

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

3. Texture如何转换成Texture2D有人搞过吗 [ 85%]

Texture如何转换成Texture2D有人搞过吗 Texture如何转换成Texture2D有人搞过吗 2018-12-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 AzureonTang 赞同来自: 1569322907用户 Texture类型有...

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

4. [LayaAir3]laya3.0.9,使用Animation播放序列帧动画,引用计数问题 [ 81%]

...animation,loadAtlas后,AtlasResource的_referenceCount是0,对应的Texture2D的_referenceCount是AtlasResource中使用的次数,当animation执行destyoy后,AtlasResource和Texture2D的_referenceCount没有变化,再次创建后AtlasResource的_referenceCount依旧是0,对应的Textu...

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

5. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 80%]

Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture 两张图片,一张取出来是Texture。 另一张却是Texture2D 版本 Laya 2.4.0.1600   这是一个图集动画,第一次加载显示没问题,是在第二次的时候出了问题。   播放流程:第...

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

6. 关于导出粒子特效问题 [ 79%]

...粒子特效问题 导出的时候报错了 Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats. UnityEngine.Texture2D:EncodeToPNG() LayaExport.DataManager:saveTextureFile(JSONObject, Texture2D, String, String, String) LayaExport.DataManager:saveLmatF...

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

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

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

8. Skeleton骨骼动画内存泄漏 [ 73%]

...f (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // con...

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

9. Resource.destroyUnusedResources有报错 [ 72%]

...ources有报错 直接加载的lh模型文件 vertexbuffer3d indexbuffer3d texture2d Avatar 这些个引用计数都有问题貌似,调用Resource.destroyUnusedResources后,会销毁好多实际还在使用中的Resource,目前考虑手动记录引用,手动销毁了 2018-08-04 添加评论 ...

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

10. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 67%]

...戏正常可用 private static _sp: Laya.Sprite = null; private static tempTexture2D: Laya.Texture2D; private static tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTextur...

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