大约有 431 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
...码,我是应该用sprite.graphics去重绘,还是该调用Laya.Render.context中的方法去重绘,绘制部分代码如下(points,是我裁切后的多边形位置点数据): draw() { const pp = this.owner.getComponent(Laya.PolygonCollider).points; l...
来源: Laya_社区 发布时间: 20200428
...信息, // 对于这种情况需要调用 'MobclickAgent.onKillProcess( Context )' // 方法,保存一些页面调用的数据。正常的应用是不需要调用此方法的。 private void Hook() { if(!isExit) { isExit = true; Toast.makeText(this, "在按一次退出程序", Toast.LENGTH_SHORT...
来源: Laya_社区 发布时间: 20170811
...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
...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
...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
...精灵 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
...因未知,偶现 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
...信 周小虎 赞同来自: 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
...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
... 里加上这句就好了 __proto._transform = function (sprite, context, x, y) { if(sprite.destroyed){ return; } 2019-03-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...
来源: Laya_社区 发布时间: 20190322