大约有 130 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
...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
...sition.cloneTo(this.curpos); this.delatpos = new Laya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 * 此方法为虚方法,使用时重写覆盖即可 */ onUpdate(): void { if (!this.target || !this.camera) return; this.target.t...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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
...材质,后面的三个胶囊体都是非透明材质,所以我们需要每帧将毛玻璃模型后面的所有渲染物体全部拿出,进行模糊,再将图片按屏幕uv采样到毛玻璃上面,便可以实现这样的效果 示例代码 createCommandBuffer(camera:Camera){ //当需要在...
来源: Laya3.0_文档 发布时间: 20251010
...没错了 熊猫大侠 • 2018-01-13 11:25 我现在 就是这样的啊 每帧一来先IconSpr.graphics.clear() 然后重新获得的texture 最后再 IconSpr.graphics.drawTexture(texture) 这个和你说的 一样的啊 kezhiyu • 2018-01-13 11:36 this.url = comp/lhjicon_5.png" this.cached_t...
来源: Laya_社区 发布时间: 20180113
...象遍历过程及程序命令组织,未缓存成一张位图,在游戏每帧渲染时,不用再次去遍历子对象,而是直接把子对象按照遍历好的层级进行显卡渲染,它不会减少drawcall,不会增加内存损耗。渲染性能中等。 “位图”:进行renderTar...
来源: Laya3.0_文档 发布时间: 20251010
...实时光源 LayaAir会在运行时为实时光源执行光照计算,每帧进行一次。你可以在运行时更改实时光源的属性,从而创建诸如闪烁的灯泡或穿过暗室的火炬之类的效果。 实时光源可用于在角色或可移动的几何体上提供光照和投...
来源: Laya3.0_文档 发布时间: 20251010
...为毫秒。 可以用来判断函数内时间消耗,通过合理控制每帧函数处理消耗时长,避免一帧做事情太多,对复杂计算分帧处理,能有效降低帧率波动。 Stage globalToLocal(point:Point, createNewPoint:Boolean = false, globalNode:Sprite = null):Point 把st...
来源: Laya2.0_api 发布时间: 20190513
...,自动执行的生命周期虚方法。该方法在持续碰撞期间,每帧都会执行。 onCollisionExit 物理碰撞结束时,自动执行的生命周期虚方法,该方法只会执行一次。 触发事件生命周期方法说明: 设置为触发器之后,因物体接触而自动...
来源: Laya3.0_文档 发布时间: 20251010