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

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

201. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 84%]

...些?在移动端,Android平台的主流纹理格式是ETC(Ericsson Texture Compression),iOS平台的主流纹理格式是PVRTC(PowerVR Texture Compression)。 需要特别说明的是,ETC1是不支持透明通道的,PVRTC是支持透明通道的,尽管在ETC2的时候,补全了...

来源: Laya2.0_文档 发布时间: 20210714

202. sprite有没有转成图片的方法 [ 84%]

...链接 提交 2 个回复 cuixueying 赞同来自: Sprite没有直接转成Texture的方法,建议直接预加载图片,然后获取该图片的texture进行draw使用! 2016-08-22 0 0 分享 微博 QZONE 微信 wgsjs 赞同来自: 哦,好的 2016-08-22 0 0 分享 微博 QZONE 微信 为什...

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

203. laya.d3.resource.DataTexture2D [ 83%]

...cumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Propert...

来源: laya_api 发布时间: 20170929

204. [LayaAir3]资源内存泄漏 [ 83%]

[LayaAir3]资源内存泄漏 1。DrawTrianglesCmd没有对Texture进行添加引用计数,其他类似的Cmd却有。 2。Draw9GridTextureCmd有对Texture进行添加引用,却没有在recover阶段减少引用。 3。SimpleSkinnedMeshRenderer.simpleAnimatorTexture 没有对老的进行减少...

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

205. Unity3d导出模型时 报错:LayaAir3D UnityPlugin prefab can't export You should check the texture file format [ 83%]

... 报错:LayaAir3D UnityPlugin prefab can't export You should check the texture file format unity版本:2018.4.7f1 插件当日Laya2.4版本插件 步骤,导入插件-->将prefab拖入场景-->手动修改shader为BlinnPhong此时LayaBlinnPhongGUI.cs会报空引用错误-->设置导出...

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

206. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 83%]

...d("res/apes/monkey2.png", Handler.create(this, function() {     var texture:Texture = Laya.loader.getRes("res/apes/monkey2.png");     var sp:Spirte = new Sprite();     sp.graphics.drawTexture(texture, 0, 0);     sp.size(texture.width, texture.height);     Laya.stage.a...

来源: Laya2.0_文档 发布时间: 20210715

207. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 83%]

...如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document....

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

208. 如果更换Sprite图片 [ 83%]

...ge的skin值来动态更换图片。 sprite可以通过sprite.graphcis.drawTexture来实现动态更换图片,当更换新的图片Texture的时候,clear掉之前的显示,将最新的texture赋值就可以了。 2017-01-12 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

209. 分享:LayaAir下如何获取图集下的小图资源? [ 83%]

...; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Hand...

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

210. app 截屏分享功能问题 [ 83%]

...sendReq(req) ; } 传过去的是bitmap: var htmlCanvas:HTMLCanvas; var texture:Texture; htmlCanvas = Laya.stage.drawToCanvas(Laya.stage.width,Laya.stage.height,0,0); texture = new Texture(htmlCanvas); texture.bitmap; 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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