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

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

1. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 100%]

...                            format = exports.TextureFormat.ETC1RGB;                             break;                         case "pvr":                             format = exports.Tex...

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

2. [LayaAir3]Laya.loader 加载png图片失真 [ 82%]

...                  }, constructParams: [undefined, undefined, Laya.TextureFormat.R8G8B8A8, true, true]                         }).then((texture: any) => {}  因为我需要读取PNG图片像素点 所以加载使用了上图的方式(canRead:true),但是图片加载...

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

3. [LayaAirIDE 2.0]读地形高度图时,没办法把Texture2D的_canRead设为true [ 79%]

...信 181*****321 赞同来自: constructParams: [undefined, undefined, Laya.TextureFormat.R8G8B8A8, true, true] 2025-08-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 MAR 相关问题 我崩了2.13.0 sourcemap生成错误,直接没...

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

4. 请问一下图集打包有命令行模式吗? [ 75%]

..., "powerOfTwo": false,//生成的图集是否尺寸保持在2的整次幂 "textureFormat": "png32"//png32和png8 }, //是针对散图的设置 "sprite": { //width和height分别是允许的散图尺寸,不符合要求的会被复制到resDir "width": 512, "height": 512, //每张散图在图集中...

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

5. Laya2.0 的3d截图 [ 74%]

...     let texture2d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false);         texture2d.setPixels(pixels);         let tex: Laya.Texture = new Laya.Texture(texture2d);         let sp:Laya.Sprite = new Laya.Sprite(tex);   }大致...

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

6. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 58%]

...reshCamera(); //在U方向上使用WARPMODE_CLAMP // texture.format = Laya.TextureFormat.ASTC10x10 texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE_REPEAT texture.wrapModeV = Laya.BaseTexture.WARPMODE_CLAMP; //设置过滤方式 texture.filterMode = Laya.BaseTexture.FI...

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