大约有 274 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...ed from Component.onLateUpdate Defined in laya/components/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in la...
来源: Laya3.0_api 发布时间: 20231115
...Canvas); canvas.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 layout.graphics.drawTexture(canvas); } 2018-08-10 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 开放域的位置偏移,是因为你主域绘制的区域跟开放数据域绘制的位置不对称,比...
来源: Laya_社区 发布时间: 20180625
...ed from Component.onLateUpdate Defined in laya/components/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in la...
来源: Laya3.0_api 发布时间: 20231115
...r _proto = BackGround.prototype; _proto.onLoop = function(){ //背景容器每帧向下移动一像素 this.y +=1; //如果背景图到了下面不可见的位置,立即调整位置到最上边 if(this.bg1.y+this.y>=852){ this.bg1.y-=852*2; } if(this.bg2.y+this.y>=852){ this.bg2.y-=852*2; } ...
来源: Laya_社区 发布时间: 20191018
...体和运动体,刚体不是运动体吗? 有个教程说,要在每帧(比如第一帧和第二帧)之间自己在客户端插入帧调整第二帧的位置,但是我不知道写在哪,如果是这样的话是不是要同时同步操作和位置。 也有人说box2d不适合做...
来源: Laya_社区 发布时间: 20190509
...题(附重现示例DEMO) 如题的mask动画,播放的方式是,在每帧创建不同的Sprite,并在Sprite上用graphic画上扇形,然后再设置到mask属性上。 导致的问题是 1. 在Chrome的Memory分页,看到虚拟机内存持续增加 2. 在Chrome的Memory分页截取...
来源: Laya_社区 发布时间: 20190306
...ed from Component.onLateUpdate Defined in laya/components/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in la...
来源: Laya3.0_api 发布时间: 20231115
...博 QZONE 微信 devilsome 赞同来自: 你需要调用graphics.clear 每帧移动都需要clear,draw 2017-07-12 0 0 分享 微博 QZONE 微信 a1284964657 赞同来自: 最新测试出来的效果是 只要设置了 sprite的scale 在移动sprite sprite.graphics的坐标不会变的。 ...
来源: Laya_社区 发布时间: 20170711
...新上传图片,但是顶点这些信息还是会上传给显卡,其实每帧都在上传这部分信息 2017-03-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 移除一个界面,需要同时移除自身removeSelf,事件removeEvent,子对象removeChildren,其中removeEvent...
来源: Laya_社区 发布时间: 20170307
...拖入动画第一帧上, 发现每一张图片的大小在UI编辑显示每帧的图片宽高都为空(默认大小 却没有值), 当编辑改了动画模板任意一组动画的第一帧动画的宽高,所有动画模板都变成了一样 甚至有的动画模板宽高都没了。 假设有10...
来源: Laya_社区 发布时间: 20171204