大约有 274 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...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
...t extends Laya.Script { constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 */ onAwake(): void { } /** * 第一次执行update之前执行,只会执行一次 */ onStart(): void { } onUpdate(): void { } onEn...
来源: Laya_社区 发布时间: 20181013
...。在材质加载完成之后,给cube添加了脚本。并且在4秒后执行的移除脚本操作。 ```typescript /** * 创建后只执行,只会执行一次,此时所有节点和组件以及创建完毕 */ public override function onAwake():void {} /** * 脚本每次启动后执行,例如...
来源: Laya2.0_文档 发布时间: 20210715
...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Defined in laya/displa...
来源: 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
...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
...port default class btn1 extends Laya.Script { constructor(){ alert("1"); //执行后这里触发了 super();} onEnable(){ alert("2"); //执行后这里触发了 } onclick(){ alert("3"); //执行后点击按钮这里没触发,不知道为什么 //Laya.Scene.open("_game.scene"); } } 2018-10-28 添...
来源: Laya_社区 发布时间: 20181028
...: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
...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
...式版的2D官方demo中,在游戏控制脚本未被激活的情况下,执行了onEnable和onStart里面的内容,onUpdate是正常没执行的。换成2.0测试版的库后是正常运行的。怀疑是2.0正式版的库存在问题,希望官方查证。 2019-02-21 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20190221