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

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

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

[LayaAirIDE 2.0]读地形高度图时,没办法把Texture2D的_canRead设为true   附件 : --> 2019-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 MAR 赞同来自:   2019-01-10 0 0 分享 微博 QZONE ...

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

2. laya.d3.resource.Texture2D [ 91%]

... 获取宽度。 BaseTexturePublic Methods  MethodDefined By  Texture2D(canRead:Boolean = false, reapeat:Boolean = true, format:int, mipmap:Boolean = true) 创建一个 Texture2D 实例。 Texture2D  getPixels():Uint8Array 返回图片像素。 Texture2D  load(url:String):Texture2D[static] ...

来源: laya_api 发布时间: 20170929

3. 官方示例-寻路导航的几个问题 [ 87%]

...么工具?或者unity插件名字叫什么   2.Texture2D加载的时候canRead属性怎么设置?   安装官方的加载示例,texuture2d加载后无法设置canRead啊 2018-11-20 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

4. 如何获取webgl模式下屏幕上的像素值 [ 83%]

...tData(0,0,width,height); tUint8Array为空, 走进去应该是因为 var canRead=(gl.checkFramebufferStatus(/*laya.webgl.WebGLContext.FRAMEBUFFER*/0x8D40)===/*laya.webgl.WebGLContext.FRAMEBUFFER_COMPLETE*/0x8CD5); if (!canRead){ gl.bindFramebuffer(/*laya.webgl.WebGLContext.FRAMEBUFFER*/0x8D40,null...

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

5. laya.resource.Texture2D [ 81%]

...exture2D(width:int = 0, height:int = 0, format:int, mipmap:Boolean = true, canRead:Boolean = false) 创建一个 Texture2D 实例。 Texture2D _getSource():*[override] 获取纹理资源。 BaseTexture  _parse(data:*, propertyParams:Object = null, constructParams:Array = null):Texture2D[static] T...

来源: Laya2.0_api 发布时间: 20190513

6. 关于Texture.getTexturePixels()函数BUG的修复代码 [ 70%]

...注释掉了。 st用到了,但是没有定义。我是手工改源码将canread设为true之后测试出来的 徐贵平 | 木哥哥 | 伐木 • 2019-11-08 18:09 if (pix){}里面的代码

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

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

...我需要读取PNG图片像素点 所以加载使用了上图的方式(canRead:true),但是图片加载出来失真了,是我参数没用对么?或者有没有其他的方式读取像素?原图已上传 附件 : --> 2025-08-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

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

...2D(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 height: number format: TextureFor...

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

9. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 56%]

... *4 *(1+1 / 3)); }else { this._setGPUMemory(width *height *4); } if (this._canRead){ if (Render.isConchApp){ this._pixels=new Uint8Array(source._nativeObj.getImageData(0,0,width,height)); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawImage(source,0,0,width,he...

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

10. laya.resource.Texture2DArray_API3.0 [ 56%]

...r, 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: TextureFormat Default value mipma...

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