大约有 158 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0044 秒)
...池,不正确的回收以及调用,可能会影响事件的执行。 onAwake(): void { console.log("Game Start"); this.Tab.selectHandler = Laya.Handler.create(this,(index:number)=>{ console.log(index); }) } Tab会侦听用户点了某个标签,并从对象池创建一个处理器。 2...
来源: Laya3.0_文档 发布时间: 20240910
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.inter...
来源: Laya3.0_文档 发布时间: 20240910
...ouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAwake():void 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 此方法为虚方法,使用时重写覆盖即可 Node once(type:String, caller:*, listener:Function, arg...
来源: Laya2.0_api 发布时间: 20190513
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce Constructors constructor new Node(): Node Defined in ...
来源: Laya3.0_api 发布时间: 20231115
...rivate logger: Laya.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this.showLogger(); this.text.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.tex...
来源: Laya3.0_文档 发布时间: 20250214
...ect 转换Message对象数据到一组Javascirpt数据。 4.5 代码示例 onAwake(): void { var resPath: string = "assets/res/protobuf/awesome.proto"; // 加载protobuf文件 this.ProtoBuf.load(resPath, this.onAssetsLoaded); } private onAssetsLoaded(err: any, root: any): void { if (err) throw err; ...
来源: Laya3.0_文档 发布时间: 20250104
...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 Sprite3...
来源: 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 Rendera...
来源: Laya3.0_api 发布时间: 20231115
...applyReflection _cloneTo _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate setRenderbitFlag __init__ changeVertexDefine shaderValueInit Constructors constructor new BaseRender(): BaseRender Overrides ...
来源: Laya3.0_api 发布时间: 20231115
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Scene.open("Msg.ls", false, { "text": "点击成功!" }); }); } } 其中,Scene场景有一个Button组件,需要在IDE...
来源: Laya3.0_文档 发布时间: 20240910