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

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

191. 裁切图片后,该用什么方式去重绘出裁切后的图片 [ 54%]

...码,我是应该用sprite.graphics去重绘,还是该调用Laya.Render.context中的方法去重绘,绘制部分代码如下(points,是我裁切后的多边形位置点数据): draw() {         const pp = this.owner.getComponent(Laya.PolygonCollider).points;         l...

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

192. 发布app(android)后,按后退键显示有问题 [ 54%]

...信息, // 对于这种情况需要调用 'MobclickAgent.onKillProcess( Context )' // 方法,保存一些页面调用的数据。正常的应用是不需要调用此方法的。 private void Hook() { if(!isExit) { isExit = true; Toast.makeText(this, "在按一次退出程序", Toast.LENGTH_SHORT...

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

193. 在LayaIDE中下载的运行器启动报错 [ 54%]

...Cache/localstorage 03-19 15:01:05.101 15556-15556/? E/SysUtils: ApplicationContext is null in ApplicationStatus 03-19 15:01:05.326 15556-15556/? E/0: ==============Java流程 FlashScreen start 03-19 15:01:05.331 15556-15556/? E/0: ==============Java流程 FlashScreen end 调用checkApkUpdate 03-19 1...

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

194. [LayaAir3]Laya3.3发布支付宝小游戏报错 [ 54%]

...r.onTBMiniGame && !t.PAL.g.isIDE) { let e = t.LayaGL.renderEngine._context; e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1); } }也就是t.LayaGL.renderEngine不存在 附件 : --> 2025-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

195. Shader预编译解决方案 [ 54%]

...ial._shaderValues._defineDatas :Laya.DefineDatas  参考接口 _render(context) {     ...     this._material._shaderValues._defineDatas.cloneTo(comDef);     var shader = context.shader = this._material._shader.getSubShaderAt(0)._passes[0].withCompile(comDef);     ... }  La...

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

196. graphics颜色填充fillColor问题 [ 54%]

...精灵 var sp:Sprite = new Sprite(); //创建渐变 var gradient=Browser.context.createLinearGradient(0,0,80,0); gradient.addColorStop(0,"white"); gradient.addColorStop(1,"red"); sp.graphics.drawRect(0, 0, 150, 150, gradient); sp.graphics.loadImage("res/colorpicker_overlay.png",0,0); //添加到舞...

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

197. 底层渲染报错,原因未知,偶现 [ 54%]

...因未知,偶现 TypeError: Cannot read property '_getSource' of null at Context.drawTriangles (laya.core-56a0e.js:1:260080) at DrawTrianglesCmd.run (laya.core-56a0e.js:1:288118 at Graphics._renderAll (laya.core-56a0e.js:1:300421) at RenderSprite.transform_drawLayaGL [as _fun] (laya.core-56a0e.js:...

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

198. 火狐浏览器运行出现花屏 [ 54%]

...信 周小虎 赞同来自: Error: WebGL warning: Exceeded 16 live WebGL contexts for this principal, losing the least recently used one. Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. Error: WebGL w...

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

199. laya.display.Stage_API3.0 [ 54%]

...a/display/Stage.ts:102 自动竖屏。 Static drawtocanvCtx drawtocanvCtx: Context Inherited from Text.drawtocanvCtx Defined in laya/display/Sprite.ts:1319 Accessors _isHeightSet get _isHeightSet(): boolean Inherited from Text._isHeightSet Defined in laya/display/Sprite.ts:538 Returns boolean _isWid...

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

200. 如果执行打开窗口再关闭这个窗口引擎就会报错 [ 54%]

... 里加上这句就好了     __proto._transform = function (sprite, context, x, y) {             if(sprite.destroyed){                 return;             } 2019-03-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...

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