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

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

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

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

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

42. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 90%]

...与内容相关的链接 提交 1 个回复 淡淡的疯 赞同来自: var texture2D = new Laya.Texture2D(); texture2D.loadImageSource(sharedCanvas, true);   var texture = new Laya.Texture(texture2D); //texture.bitmap.alwaysChange = true; rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas.wi...

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

43. 从unity里面导出的时候报错:MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. [ 90%]

...的时候报错:MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. unity版本是:2017.3.1f1 LayaAir3D工具版本是:1.7.16 beta 只是导出场景跟模型 附上导出参数设置以及报错详细信息,求解答   附件 : --> 2018-03-03 添加评论 免费...

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

44. [LayaAir3]3.3 beta3 ios 15pro偶尔材质会变黑 [ 90%]

...Scale: { type: Float, default: 1.0 },         u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } },          // u_AlbedoTexture2: { type: Texture2D, options: { define: "ALBEDOTEXTURE2" } },         // u_AlbedoTexture2Offset: { type: Vector4, default: [1, 1, 0, 0] }...

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

45. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 89%]

...seTexture为什么不起作用?? customMaterial.setDiffuseTexture(Laya.Texture2D.load("qiu/Texture2.png")); @asanwu 2017-05-25 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 1.fbx暂时停止维护,现在全部的精力投入unity研究开发; 2.可以打开球的材质文件,查...

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

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

texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.s...

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

47. laya.d3.shader.pbr.PBRDefaultDFG_API3.0 [ 87%]

...FG Methods DefaultDfgTexture Accessors Static defaultDFG get defaultDFG(): Texture2D set defaultDFG(value: Texture2D): void Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:13 Returns Texture2D Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:16 Parameters value: Texture2D Returns void Methods Static De...

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

48. 怎么给从模型生成的地形TerrainMaterial材质??? [ 87%]

...aterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.load("map2.png"); te...

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

49. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 87%]

...text":No function was found that matched the signature provided   在this.texture2D.loadImageSource(this.cav);报错   this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256;  var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5' + '...

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

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

...HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建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 = ne...

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