大约有 321 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
...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 Skinned...
来源: 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 TrailSp...
来源: Laya3.0_api 发布时间: 20231115
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.inter...
来源: Laya3.0_文档 发布时间: 20251010
... @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this...
来源: Laya3.0_文档 发布时间: 20251010
...同 怎样跨页面执行脚本命令? Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 构建安卓项目导入到Android Studio 中,报错 ls文件导入错误 laya2.0 GameConfig怎么更新有scene的脚本? 官方"3D角色脚本控制与碰撞检测"这个方...
来源: Laya_社区 发布时间: 20200226
...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 SimpleS...
来源: Laya3.0_api 发布时间: 20231115
...频和我们生命周期使用的示例 LayaAir大为 • 2025-06-10 10:32 onAwake是脚本被激活时执行的方法,在创建场景时,会在脚本所属节点添加到场景中时执行此方法,节点添加到场景是先添加父节点,然后添加子节点,onAwake的执行顺序也...
来源: Laya_社区 发布时间: 20250609
...命令? 脚本组件添加对象问题 Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 问题状态 最新活动: 2019-05-23 11:57 浏览: 1081 关注: 2 人
来源: Laya_社区 发布时间: 20190125
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "...
来源: Laya3.0_文档 发布时间: 20251010
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeLine removeSelf replaceChild runCallLater setChildIndex setLine timerLoop timerOnce instantiate load Constructors cons...
来源: Laya3.0_api 发布时间: 20231115