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

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

1. laya.resource.TextureFormat_API3.0 [ 100%]

LAYA_API #laya_nav { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media...

来源: Laya3.0_api 发布时间: 20230115

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

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

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

3. laya.d3.resource.TextureCube_API3.0 [ 62%]

...edResources Constructors constructor new TextureCube(size: number, format: TextureFormat, mipmap?: boolean, sRGB?: boolean): TextureCube Overrides BaseTexture.constructor Defined in laya/d3/resource/TextureCube.ts:79 Parameters size: number format: TextureFormat Default value mipmap: boolean = true ...

来源: Laya3.0_api 发布时间: 20231102

4. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 61%]

.../创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = new Sprite(); //使用Sprite对象的绘制纹理方式 sp2.graphics.d...

来源: Laya3.0_文档 发布时间: 20230303

5. laya.resource.TextureCube_API3.0 [ 61%]

...edResources Constructors constructor new TextureCube(size: number, format: TextureFormat, mipmap?: boolean, sRGB?: boolean, premultiplyAlpha?: boolean): TextureCube Overrides BaseTexture.constructor Defined in laya/resource/TextureCube.ts:85 Parameters size: number format: TextureFormat Default valu...

来源: Laya3.0_api 发布时间: 20231115

6. laya.resource.Texture2DArray_API3.0 [ 61%]

...r new Texture2DArray(width: number, height: number, depth: number, format: TextureFormat, mipmap?: boolean, canRead: boolean, sRGB?: boolean): Texture2DArray Overrides BaseTexture.constructor Defined in laya/resource/Texture2DArray.ts:12 Parameters width: number height: number depth: number format: ...

来源: Laya3.0_api 发布时间: 20231115

7. [LayaAir3]Laya.loader 加载png图片失真 [ 61%]

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

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

8. laya.resource.Texture2D_API3.0 [ 58%]

...structors constructor new Texture2D(width: number, height: number, format: TextureFormat, mipmap?: boolean, canRead: boolean, sRGB?: boolean, premultiplyAlpha?: boolean): Texture2D Overrides BaseTexture.constructor Defined in laya/resource/Texture2D.ts:247 实例化2D纹理 Parameters width: number ...

来源: Laya3.0_api 发布时间: 20231115

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

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

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

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

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

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