大约有 321 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new Rendera...
来源: Laya3.0_api 发布时间: 20231115
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.lab.size(500, 30); //大小 this.lab.pivot(this.lab.width/2, this.lab.height/2); //轴心点 this.lab.text = "大家好,...
来源: Laya3.0_文档 发布时间: 20251010
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new Directi...
来源: Laya3.0_api 发布时间: 20231115
...。您可以将_init方法放到Main脚本的生命周期函数内,例如onAwake或者onEnable等,但不建议放到构造函数内,这样在IDE内编辑时不会执行生命周期函数,来避免出现这种现象。 2023-02-07 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20230207
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce createFromMesh createFromMeshAndHeig...
来源: Laya3.0_api 发布时间: 20231102
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vslider.pos(300,300);//滑动条位置 this.vslider.skin = "resources/vslider.png";//滑动条底图皮肤 this.vslider.value = 0.5; this.vslider.max = 50; this.vslider.min = 0; this.vslider.tick = 1; thi...
来源: Laya3.0_文档 发布时间: 20251010
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hslider.pos(300, 300);//滑动条位置 this.hslider.skin = "resources/hslider.png";//滑动条底图皮肤 this.hslider.value = 0.5; this.hslider.max = 50; this.hslider.min = 0; this.hslider.tick = 1; th...
来源: Laya3.0_文档 发布时间: 20251010
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new MeshSpr...
来源: Laya3.0_api 发布时间: 20231115
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new ShuriKe...
来源: Laya3.0_api 发布时间: 20231115
... super(); fruit.Fru=this; } onAwake() { let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody); this.rope=this.owner.getComponent(Laya.RopeJoint); ...
来源: Laya_社区 发布时间: 20220413