大约有 208 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0034 秒)
官方“销毁Texture”示例问题 打开示例,GPU内存占用显示为5M点击“销毁”按钮后,GPU内存占用为0M 然后点击“恢复”按钮后,GPU内存占用飙到120多M 这正常么? 附件 : --> 2019-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20190731
用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
...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
Texture.destroy()方法设计有问题 在不通过使用强制销毁的情况下 引用系数会多减去一次。Resource.removeReference()多调用一次 2018-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180505
BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! 骨骼动画里有没有办法直接替换显示数据和纹理? 代码这样赋值不显示 调用一次 _slot.currTexture = tex; 则显示错乱。 附件 : --> 2018-05-07 添加评论 悬赏 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180507
2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? 原本像实现将场景的东西绘制到一个sprite上,参考以前的截屏代码是可以的。 然后1.x 上我实现了,但是2.0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, u...
来源: Laya_社区 发布时间: 20190624
...关的链接 提交 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
...显示问题 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
关于导出粒子特效问题 导出的时候报错了 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
...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