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

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

21. 二进制文件打包后,读取不到zip包内的文件 [ 90%]

...     console.log('res,', (typeof res))             Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {                 material.albedoTexture = tex;                 let item = 'res/layabox.png'...

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

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

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

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

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

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

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

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

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

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

26. 高级应用-寻路导航 [ 86%]

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

27. PBRStandardMaterial材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 86%]

...tandardMaterialDemo))。 ```typescript setTexture(){ //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 L...

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

28. Texture,和Texture2D如何互转? [ 86%]

Texture,和Texture2D如何互转? 我要设置模型的贴图,我通过Laya.Texture2D.load(path)读取到的是Texture,不能直接设置到Texture2D上去 2018-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

29. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 86%]

...:PBRStandardMaterial = new Laya.PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Te...

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

30. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 85%]

...  Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) => {             //在U方向上使用WARPMODE_CLAMP             texture.wrapModeU = Laya.WrapMode.Clamp;             //在V方向使用WARPMODE_CLAMP        ...

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