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

大约有 307 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0048 秒)

41. 高级应用-寻路导航 [ 84%]

..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...

来源: Laya_示例 发布时间: 20240929

42. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 83%]

...a.BlinnPhongMaterial;         //添加漫反射贴图         Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.j...

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

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

...          }                     tex = new Texture2D(0, 0, format, false, false);                     tex.wrapModeU = exports.WarpMode.Clamp;                     tex.wrapModeV = exports.WarpMode.Clamp;          ...

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

44. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 83%]

...url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.Loader.TEXTURE2D; Laya.loader.load([url1, url2]).then((res:Array<any>)=> { //加载多个,不带类型 }); Laya.loader.load([url1, url2], type).then((res:Array<any>)=> { //加载多个,统一设置类型 }); La...

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

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

...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 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

46. 安卓app加载场景错误 [ 82%]

...ateTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__proto.recreateResource (http://192.167.0.100/h5/layawe ... 6810:8) at Texture2D.__proto.onAsynLoaded (http://192.167.0.100/h5/la...

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

47. [LayaAir3]资源未清理干净 [ 81%]

...] loader http://localhost:18090/resources/chest_bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resources/chest_bg.p...

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

48. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 81%]

...3D纹理的使用 3D的png或者jpg格式纹理加载,是使用的`Laya.Texture2D.load()`来加载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid...

来源: Laya2.0_文档 发布时间: 20210714

49. 3D开启多线程报错 [ 80%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

50. 3D开启多线程报错 [ 80%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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