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

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

71. 有没有什么方法可以禁用mipmap [ 82%]

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

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

72. laya.d3.resource.TextureGenerator [ 81%]

...thods  MethodDefined By  TextureGenerator()TextureGenerator  _generateTexture2D(texture:Texture2D, textureWidth:int, textureHeight:int, func:Function):void[static] TextureGenerator  haloTexture(x:int, y:int, maxX:int, maxY:int, index:int, data:Uint8Array):void[static] TextureGenerator  ligh...

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

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

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

74. 寻路导航示例中添加Laya.PathFind组件报异常 [ 80%]

...行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Laya.Texture2D; //初始化MeshTerrainSprite3D this.terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSpri...

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

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

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

76. laya.d3.core.HeightMap [ 79%]

...ber) 创建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap  creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图...

来源: laya_api 发布时间: 20170929

77. laya.d3.core.HeightMap [ 79%]

...ber) 创建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap  creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图...

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

78. [LayaAir3]资源未清理干净 [ 79%]

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

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

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

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

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

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