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

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

31. 预加载图集文集在小游戏端导致内存过高 [ 60%]

...很高,该怎么办? 和官网推荐的material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址; //在此之下,再使用load加载资源,都会自动加入URL网址...

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

32. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 59%]

...如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document....

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

33. 1.7.18beta少方法? [ 58%]

...个例子,地面部分是白色的 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 问题状态 最新活动: 2018-04-18 10:54 浏览: 1072 关注: 1 人

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

34. 发布原生 ios/android 的渲染问 题 [ 57%]

...游戏中也 确实进行了相关的操作  private onTexLoad(tex:Laya.Texture2D):void { // let oldTex = this.material.getTexture(); this.material.setTexture(tex); this.plane.active = true; // if(oldTex) // { // MeshPool.destoryRes(oldTex["keyUrl"],oldTex); // }  }我所注视的就是上面在la...

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

35. 3D场景中背景无法透明,版本2.7.1 [ 56%]

... 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微...

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

36. 微信小游戏wxmin图片加载有点问题 [ 52%]

...(3) var boxMat = new Laya.StandardMaterial(); boxMat.diffuseTexture = Laya.Texture2D.load("https://s2.d2scdn.com/2018/1/2 ... 6quot;); box.meshRender.material = boxMat; // var ape = new Laya.Sprite() // Laya.stage.addChild(ape) // ape.loadImage('https://s2.d2scdn.com/2018/1/2/474ebb47-f3af-4426-bc07...

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

37. 1.7.17beta,微信小游戏预览加载问题 [ 48%]

...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; var layaMonkey = scene.addChild(Laya.Sprite3D.load("res/LayaMonkey/LayaMonkey.lh")); 2018-03-12 0 0 分享 微博 QZONE 微信 banmini 赞同来自: 补...

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

38. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 40%]

...分享 微博 QZONE 微信 zfree 赞同来自: 新版本untiy UnityEngine.Texture2D.EncodeToPNG 去掉了见截图 我这边还是导出的时候 报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 资源见unity.zip. 导出配置见截图 导出工具1.6.1,u...

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

39. laya.d3.core.scene.Scene3D_API3.0 [ 39%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...

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

40. laya.html.dom.HTMLIframeElement_API3.0 [ 27%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null, invertY?: boolean): Texture | RenderTexture2D Inherited from AnimationBase.drawToTexture Defined in laya/display/Sprite.ts:1200 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: numbe...

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