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

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

31. [LayaAir3]3.0 Image使用的Texture不在_idResourcesMap里,没办法gc清,image执行destory的时候也没有清 [ 89%]

... 1 个回复 Laya_Fred 赞同来自: 您好,是Texture的bitmap类型为texture2D,引用一次Texture2D资源,image设置texture之后,如果需要销毁资源,可以试下使用image的dispose方法,我们销毁一个image时候,如果直接将引用的texture2D也销毁掉,其他...

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

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

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

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

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

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

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

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

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

35. texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式 [ 88%]

texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式 2020-01-07 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

36. laya.resource.Texture2DArray_API3.0 [ 87%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2DArray" Texture2DArray Class Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel ...

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

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

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

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

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

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

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

40. laya.d3.resource.DataTexture2D [ 84%]

...cumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Propert...

来源: laya_api 发布时间: 20170929