大约有 130 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...果想实现动图2-1所示的效果,即绕Y轴进行旋转动画,则每帧需要增加localRotationEulerY的值,示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; //...
来源: Laya3.0_文档 发布时间: 20251010
...博 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
...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
...游戏需要很多image、骨骼、动画之间的相互碰撞,而且是每帧检测大量碰撞,且碰撞的的物体,比如骨骼是会平凡的变大变小,为了不影响性能,加上rectangle1改变大小很简单,所以选择rectangle加intersects的方式,很适合。 demo后,...
来源: Laya_社区 发布时间: 20161211
... textture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 Laya.stage.graphics.drawTexture(textture); debugDraw.SetSprite(ctx); debugDraw.SetDrawScale(30.0); debugDraw.SetFillAlpha(0.3); debugDraw.SetLineThickness(1.0); debu...
来源: Laya_社区 发布时间: 20180905
...用道具 游戏不足之处: 1. 主角是根据鼠标的位置,每帧进行移动, 如果玩家点击道具, 会导致主角也跟着去道具的位置 目前解决方法是, 如果鼠标在 到处的范围里面,就不移动了 如果有更好的解决思路,欢迎交流一下 ...
来源: Laya_社区 发布时间: 20170902
...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
...9 赞同来自: 因为timer有一个自管理的update函数,这个函数每帧执行,会自动检测handler是否可回收,当可回收时会自动回收 2022-02-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1645703437用...
来源: Laya_社区 发布时间: 20220224