大约有 301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)
... public txt: Laya.Text; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txt.size(500, 30); //大小 this.tx...
来源: Laya3.0_文档 发布时间: 20251010
...aide如何创建一个复合的Button dialog 自定义关闭效果,效果执行完,弹窗无法关闭 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? IDE创建的UI 层级问题 IDE通过.ui自动生成的ui代码报错 laya3D动画无法播放 [Laya2.0 3D] 2.0正...
来源: Laya_社区 发布时间: 20220413
...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.cl...
来源: Laya3.0_api 发布时间: 20231115
...的示例 LayaAir大为 • 2025-06-10 10:32 onAwake是脚本被激活时执行的方法,在创建场景时,会在脚本所属节点添加到场景中时执行此方法,节点添加到场景是先添加父节点,然后添加子节点,onAwake的执行顺序也是如此; LayaAir大为 • ...
来源: Laya_社区 发布时间: 20250609
...ilder,编译后的结果跟IDE编译后的结果不相同 怎样跨页面执行脚本命令? Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 构建安卓项目导入到Android Studio 中,报错 ls文件导入错误 laya2.0 GameConfig怎么更新有scene的脚本...
来源: Laya_社区 发布时间: 20200226
... txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 thi...
来源: Laya3.0_文档 发布时间: 20251010
...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.cl...
来源: Laya3.0_api 发布时间: 20231102
..."这个方法是不是不适用于高低起伏的地面? 怎样跨页面执行脚本命令? 脚本组件添加对象问题 Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 问题状态 最新活动: 2019-05-23 11:57 浏览: 1081 关注: 2 人
来源: Laya_社区 发布时间: 20190125
...延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.cl...
来源: Laya3.0_api 发布时间: 20231115
...c sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1...
来源: Laya3.0_文档 发布时间: 20251010