大约有 513 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
...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
... if (tweener != null) //需要判空,因为如果这段缓动已经执行完毕,会返回null tweener.kill(); //会终止这段缓动,并立刻执行下一段 3.6 自定义插值函数 开发者可以通过interp()方法设置自定义的插值函数。引擎内置了几个特别的插值函...
来源: Laya3.0_文档 发布时间: 20251010
...e():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器...
来源: Laya2.0_api 发布时间: 20190513
...); } } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { let sprite = this.owner as Laya.Sprite; //sprite.cache = true; this._temp = new Laya.Sprite(); this.owner.scene.addChild(this._temp); this.findCompents(this._allAgent, sprit...
来源: Laya3.0_文档 发布时间: 20251010
... /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.graphics.fillText("fillText:引擎绘制的文本,适合简单的单行文本", 100, 300, " 60px simHe...
来源: Laya3.0_文档 发布时间: 20251010
...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
... /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { } /** * 组件被启用后执行,比如节点被添加到舞台后 * 此方法为虚方法,使用时重写覆盖...
来源: Laya3.0_文档 发布时间: 20251010
...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
...t.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Overrides Component.onDestroy Defined in laya/d3/component/HLOD/HLODRender.ts:178 Returns void onDisable onDisable(): void Overrides Component.onDisab...
来源: Laya3.0_api 发布时间: 20231115