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

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

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

...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

22. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 85%]

Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture 两张图片,一张取出来是Texture。 另一张却是Texture2D 版本 Laya 2.4.0.1600   这是一个图集动画,第一次加载显示没问题,是在第二次的时候出了问题。   播放流程:第...

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

23. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 84%]

...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void {             menu_sprite_jian.graphics.drawTexture(tex,0,0);             }));这样然后无法drawtexture报...

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

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

...与内容相关的链接 提交 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

25. 分享:Graphics下cmds命令流的使用! [ 82%]

...理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=Loader.getRes('apes/monkey2.png') as Texture; var texture4:Texture=Loader.getRes('apes/monkey3.png') as Texture; //绘制纹理 var box:Sprit...

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

26. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...edoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Texture2D, options: { define: "NORMALTEXTURE" } }, u_NormalScale: { type: Float, default: 1.0, range: [0.0, 2.0] }, u_Metallic: { type: Float, defaul...

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

27. WaterPrimaryMaterial的使用 [ 81%]

...ar material: Laya.BaseMaterial = new WaterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, ...

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

28. 有没有什么方法可以禁用mipmap [ 80%]

...用mipmap Laya3D有没有一个全局设置可以禁用texture的mipmap, texture2d对象不是我生成的,没办法在构造方法设置,所以想问下有没有个全局方法可以设置 2018-04-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

29. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 80%]

...ideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.wid...

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

30. worker.js 使用问题 [ 78%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya...

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