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

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

61. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(带悬赏的每次都创建订单失败,之后在社区里面看不到) [ 76%]

...10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-1...

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

62. 安卓app加载场景错误 [ 75%]

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

63. 3D开启多线程报错 [ 75%]

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

64. 3D开启多线程报错 [ 75%]

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

65. LAYA3D,如何关闭ALPHA预乘 premultiply alpha [ 75%]

...e precision loss occurs on IE. Try separating color and alpha to different textures. 2018-04-14 0 0 分享 微博 QZONE 微信 InJoins 赞同来自: 又一个GITHUB上的相关信息: Some implementations of HTMLCanvasElement's CanvasRenderingContext2D store color values internally in premultiplie...

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

66. Spine的播放出现闪烁 [ 75%]

...致出现闪烁。 原因:spine动画模板类SpineTemplet_3_x 使用的Texture是加载回来后,从新创建了一个SpineGLTexture,没有放进Loader.textureMap中管理,既textureMap中缓存起来的Texture与spine在destroyUnusedResources后没有关联了,然后spine是调用drawTri...

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

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

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

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

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

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

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

69. LayaAir3.0中添加官网Demo的Png图片,出现背景无法透底 [ 73%]

...IDE后,选中想要修改的资源(可多选),在属性面板中将Texture Type属性改为Sprite Texture,也可以解决。以上是2DUI资源的解决方法。 2023-01-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加...

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

70. 高级应用-寻路导航 [ 73%]

..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...

来源: Laya_示例 发布时间: 20260303