大约有 3,889 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0091 秒)
Laya_社区(3325) Laya3.0_api(156) Laya2.0_文档(115) Laya3.0_文档(114) laya_api(90) Laya2.0_api(86) Laya_示例(2) Laya2.0_示例(1)
...是代碼面的問題,我用的是官方推薦的寫法。 // 第一次执行update之前执行,只会执行一次 onStart(): void { fairygui.UIPackage.loadPackage("resources/LayaBUG", (pkgs) => { const view = pkgs[0].createObject("View"); console.log(view); this.owner.add...
来源: Laya_社区 发布时间: 20250829
...mByClass("monster", SimpleRole),当第一个对象的timer事件还没有执行完,第二个对象的timer就开始了,如此反复创建覆盖导致的,你可以参考下官方文档打飞机的案例,尝试把timer动画播放行为放到SimpleRole类内部,那么每次创建完一个m...
来源: Laya_社区 发布时间: 20170701
...:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次某函数(基于帧率)。功能...
来源: Laya2.0_api 发布时间: 20190513
解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() ILaya.m_worker = new Worker("libs/sleepThread.js"); ILaya.m_worker.onmessage = function () { if (!ILaya.stage.isVisibility) { // console.log...
来源: Laya_社区 发布时间: 20201201
...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.cl...
来源: Laya3.0_api 发布时间: 20231115
...:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次某函数(基于帧率)。功能...
来源: Laya2.0_api 发布时间: 20190513
1.70beta Dialog增加动画后第二次执行popup不显示弹窗 只有半透明遮罩出现,弹窗的实体不出现,1.60版本正常 2017-03-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 cuixueying 赞...
来源: Laya_社区 发布时间: 20170303
...Defined in laya/utils/Ease.ts:66 方法以零速率开始运动,然后在执行时加快运动速度。 它的运动是类似一个球落向地板又弹起后,几次逐渐减小的回弹运动。 Parameters t: number 指定当前时间,介于 0 和持续时间之间(包括二者)。 b: num...
来源: Laya3.0_api 发布时间: 20231115
...nent.onAwake Defined in laya/components/Component.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销...
来源: Laya3.0_api 发布时间: 20231115
...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.cl...
来源: Laya3.0_api 发布时间: 20231115