大约有 20 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0036 秒)
...置 //重写渲染函数 public //重写渲染函数 public customRender(context:Laya.RenderContext,x:number,y:number):void{ this.shaderValue.iTime += this.animeValue; let webgl2d = context.ctx instanceof Laya.WebGLContext2D if( webgl2d) (context.ctx as Laya.WebGLContext2D).setIBVB( x, y, this.iBuff...
来源: Laya_社区 发布时间: 20180712
... 分享 微博 QZONE 微信 135*****336 赞同来自: 问题:报错 WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost 开发环境:laya2.9.0 + Fgui 5.0.10 游戏运行环境:Chrome版本 96.0.4664.45(正式版本) 我们公司当前业务必须使用Chrome版本,Chrome自动更新...
来源: Laya_社区 发布时间: 20211112
...] = copy[i + 1 + d * 4] data[i + 2] = copy[i + 2 + d * 4] } } Laya.Browser.context.putImageData(imageData, 0, 0, 0, 0, 400, 400) } function showApe() { // 方法1:使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawT...
来源: Laya_社区 发布时间: 20171130
...vas.size(width, height); Browser.canvas.clear(); Browser.context.drawTexture(this, -x, -y, this.width, this.height, 0, 0); var info:* = Browser.context.getImageData(0, 0, width, height); } return info.data; } 这个方法在打包APP后就会报错,错误是...
来源: Laya_社区 发布时间: 20171030
... 我自己在IDE中用开发人员工具调试发现是因为canvas.getContext("webgl")不能正确获取Context导致的, gl=canvas.getContext(names,{stencil:Config.isStencil,alpha:Config.isAlpha,antialias:Config.isAntialias,premultipliedAlpha:Config.premultipliedAlpha,preserveDrawingBuffer:Co...
来源: Laya_社区 发布时间: 20181011
...s = "bitmap"报错 版本:2.0.0 beta5.1 TypeError: Cannot read property 'context' of nullpreload.js:55 at WebGLContext2D.__proto.drawCanvas (/***/bin/libs/laya.webgl.js:12261:18) at RenderSprite3D.__proto._canvas (/***/bin/libs/laya.core.js:8717:12) at RenderSprite3D.RenderSpr...
来源: Laya_社区 发布时间: 20190108
...一般3-4个就报错了 Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6). at Function.<anonymous> (<anonymous>:10787:310) at Function.get (<anonymous>:168:66) at Function.WebAu...
来源: Laya_社区 发布时间: 20170224
...因未知,偶现 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
...当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:Context, x:Number, y:Number):void 自定义更新、呈现显示对象。一般用来扩展渲染模式,请合理使用,可能会导致在加速器上无法渲染。 注意不要在此函数内增加或删除树...
来源: Laya2.0_api 发布时间: 20190513
...当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:RenderContext, x:Number, y:Number):void 自定义更新、呈现显示对象。一般用来扩展渲染模式,请合理使用,可能会导致在加速器上无法渲染。 注意不要在此函数内增加或删...
来源: laya_api 发布时间: 20170929