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

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

11. laya 2.6.0 加载image报错 [ 86%]

laya 2.6.0 加载image报错 加载IMAGE资源的时候,data为Texture2D类型,前两个判断没走,(data instanceof ArrayBuffer) 和 (!(data instanceof Texture2D))。导致tex为undefined,结果就无法继续加载了。。 LayaAir 2.6.0 的JS版本   ps: 加载的是FairyGu...

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

12. Laya.Texture2D.load崩溃问题 [ 85%]

Laya.Texture2D.load崩溃问题 var material = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("ceshi.jpg", Laya.Handler.create(this, function (texture) { material.albedoTexture = texture; })); 附件 : --> 2020-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

13. Failed to execute 'texImage2D怎么处理? [ 84%]

Failed to execute 'texImage2D怎么处理? 我用 var _texture2d:Texture2D = new Texture2D(); _texture2d.onAsynLoaded(null, image); image是一个base64数据, 然后就报下面的错误 "Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signatur...

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

14. png使用base64显示异常 [ 83%]

...n () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTMLImage.create(image.width,image.height,1); img.loadImageSource(image,true); img._setCreateURL(url); _this.onLoaded(img); }; var url = _this.arra...

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

15. 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 [ 81%]

...示的 var texture:Texture = new Texture(Browser.window.sharedCanvas); var texture2:Texture = Texture.createFromTexture( texture, 0,0, 100, 100); //取前面100像素 var image:Image=new Image() image.texture=texture2 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

16. DataTexture2D是做什么用的 [ 79%]

DataTexture2D是做什么用的 我用base64的数据用 var _texture2d:DataTexture2D = new DataTexture2D();  _texture2d.onAsynLoaded(null, image); material.diffuseTexture=_texture2d; 没报错,但是贴上去是纯灰色,不是图片 DataTexture2D怎么用? 2018-06-05 添加评论 免费帖...

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

17. 资源加载 · LayaAir3.0文档 · LAYABOX [ 79%]

...H MESH Mesh资源 Laya.Loader.MATERIAL MATERIAL Material资源 Laya.Loader.TEXTURE2D TEXTURE2D Texture2D资源 Laya.Loader.TEXTURECUBE TEXTURE2D TextureCube资源 Laya.Loader.SPINE SPINE Spine资源 二、加载多个资源 有很多时候,我们需要把大量的资源在Loading界面进行预加...

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

18. laya.resource.Texture2D_API3.0 [ 77%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2D" Texture2D Class Texture2D Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture erro...

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

19. laya.net.Loader [ 77%]

...ring = text[static] 文本类型,加载完成后返回文本。Loader  TEXTURE2D : String = TEXTURE2D[static] Texture2D资源。Loader  TEXTURECUBE : String = TEXTURECUBE[static] TextureCube资源。Loader  TTF : String = ttf[static] TTF字体类型,加载完成后返回null。Loader  XM...

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

20. laya.net.Loader_API3.0 [ 77%]

...CHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasLi...

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