大约有 513 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
...t.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisable(): v...
来源: Laya3.0_api 发布时间: 20231115
...t.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisable(): v...
来源: Laya3.0_api 发布时间: 20231102
...件总个数和耗时Load Zip Total:从压缩包下载前到资源加载完毕后的总耗时 如果需要关闭调试可以:[code]// Turn off time-consuming printing LayaZip.DeBug = false[/code]缓存 小游戏平台缓存zip文件开关(默认开启)[code]LayaZip.CacheZIPFile = true[/code]...
来源: Laya_社区 发布时间: 20230316
...t.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisable(): v...
来源: Laya3.0_api 发布时间: 20231115
...t.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisable(): v...
来源: Laya3.0_api 发布时间: 20231102
...: any; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //在节点上添加2D拖尾渲染器 this._trail2D = this.owner.addComponent(Laya.Trail2DRender); //设置淡出时间 this._trail2D.time = 1; //设置最小距离 this._tr...
来源: Laya3.0_文档 发布时间: 20251010
...e():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器...
来源: Laya2.0_api 发布时间: 20190513
...t.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisable(): v...
来源: Laya3.0_api 发布时间: 20231115
...e():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器...
来源: Laya2.0_api 发布时间: 20190513
... onAwake 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onEnable 组件被启用后执行,比如节点被添加到舞台后 onStart 第一次执行onUpdate之前执行,只会执行一次 onUpdate 每帧更新时执行,尽量不要在这里...
来源: Laya3.0_文档 发布时间: 20251010