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

大约有 288 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)

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

...如图三),代码如下: 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

62. 特效播放问题 [ 72%]

...合集导致的)。 在资源预加载之后,使用之前加上: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false; rgxianzhan • 2017-10-23 19:39 不能在加载的时候设置大图合集么,使用的地方真不少 Monica • 2017-10-23 20:01 @rg...

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

63. LayaAPP打包后laya.webgl.j错误,浏览器测试没问题 [ 72%]

...,请把此信息截图给研发商 TypeError: Cannot read property '_glTexture' of undefined http://stand.alone.version/lib ... 5906: TypeError: Cannot read property '_glTexture' of undefined _i32b[2]=isloaded?value.bitmap._glTexture.id:0; ^^ TypeError: Cannot read property '_glTexture' of undefin...

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

64. 同时使用雾和粒子系统,粒子的颜色变成雾的颜色 [ 71%]

...if(v_Discard!=0.0)    discard;   #ifdef TINTCOLOR    gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*u_Tintcolor*2.0*v_Color;   #else    gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*v_Color;   #endif  #else   #ifdef TINTCOLOR    gl_FragColor*=u_Tintcolor*2.0*v_C...

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

65. 安卓app加载场景错误 [ 71%]

...//192.167.0.100/h5/layawe ... 6756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__pro...

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

66. 微信小游戏在开放数据域绘制排行榜无法显示图片 [ 71%]

...就是这一句代码把子域绘制出来就完事了吗? var rankTex:Texture = new Texture(Browser.window.sharedCanvas); rankSpr.graphics.drawTexture(rankTex, 5, 78, rankTex.width, rankTex.height); 排行的所有逻辑都是在子域项目里做的是吗,那如何从排行榜返回主游戏...

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

67. 请问一下,如何在使用Tween进行缓动处理时控制每个阶段的时间比率设置? [ 71%]

...开始,我用ts编写的相关内容,都要使用import和export吗? Texture图片能否进行翻转? 骨骼动画播放完后的回调时间 3D模型tween旋转 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? Laya3D里的material...

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

68. 3D开启多线程报错 [ 71%]

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

69. 3D开启多线程报错 [ 71%]

...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_社区 发布时间: 20190323

70. [LayaAir3]laya3.0.9,使用Animation播放序列帧动画,引用计数问题 [ 71%]

...animation,loadAtlas后,AtlasResource的_referenceCount是0,对应的Texture2D的_referenceCount是AtlasResource中使用的次数,当animation执行destyoy后,AtlasResource和Texture2D的_referenceCount没有变化,再次创建后AtlasResource的_referenceCount依旧是0,对应的Textu...

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