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

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

11. 官方“销毁Texture”示例问题 [ 81%]

官方“销毁Texture”示例问题 打开示例,GPU内存占用显示为5M点击“销毁”按钮后,GPU内存占用为0M 然后点击“恢复”按钮后,GPU内存占用飙到120多M   这正常么?   附件 : --> 2019-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

12. 用ide打包后的图片,Texture显示不出来? [ 81%]

用ide打包后的图片,Texture显示不出来? Sprite和Image可以显示出来,Texture报错、、、说找不到图片   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.sta...

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

13. Sprite3D-Sprite3D克隆 [ 80%]

...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...

来源: Laya_示例 发布时间: 20251209

14. Texture.destroy()方法设计有问题 [ 80%]

Texture.destroy()方法设计有问题 在不通过使用强制销毁的情况下 引用系数会多减去一次。Resource.removeReference()多调用一次 2018-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

15. BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! [ 79%]

BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! 骨骼动画里有没有办法直接替换显示数据和纹理? 代码这样赋值不显示   调用一次 _slot.currTexture = tex; 则显示错乱。     附件 : --> 2018-05-07 添加评论 悬赏 --> 分享 微博 QZONE ...

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

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

2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? 原本像实现将场景的东西绘制到一个sprite上,参考以前的截屏代码是可以的。 然后1.x 上我实现了,但是2.0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, u...

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

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

...关的链接 提交 1 个回复 Laya_XS 赞同来自: 代码参考: var texture1:Texture = Loader.getRes("res/hero/1.jpg"); if(texture1 && texture1.bitmap) { texture1.bitmap.releaseResource(); } 2018-04-10 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...

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

18. 关于纹理的显示问题 [ 78%]

...显示问题     var sprite:Sprite=new Sprite(); sprite.pos(0, 0); var texture:Texture=new Texture(Browser.window.sharedCanvas); if (texture) { // texture.bitmap.alwaysChange=true; //小程序使用,非常费,这个参数可以根据自己的需求适当调整,如果内容不变可以不用...

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

19. 关于导出粒子特效问题 [ 78%]

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

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

20. 从大图里边截取一部分显示,为啥显示不出来? [ 78%]

...ge(); imgBig.skin="big.jpg";  let imgCut:Laya.Image=new Laya.Image(); let texture:Laya.Texture=Laya.Texture.create(imgBig,0,0,100,100); imgCut.texture=texture; Laya.stage.addChild(imgCut); 2019-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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