• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 301 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)

111. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

... @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

112. RopeJoint代码动态创建 无法设置otherbody [ 69%]

...       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

113. laya.d3.core.light.DirectionLight_API3.0 [ 69%]

...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

114. [LayaAir3]3.3.0-beta.4已知新bug汇总 [ 68%]

...频和我们生命周期使用的示例 LayaAir大为 • 2025-06-10 10:32 onAwake是脚本被激活时执行的方法,在创建场景时,会在脚本所属节点添加到场景中时执行此方法,节点添加到场景是先添加父节点,然后添加子节点,onAwake执行顺序也...

来源: Laya_社区 发布时间: 20250609

115. 为什么导入脚本没有此模块 [ 68%]

...同 怎样跨页面执行脚本命令? Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 构建安卓项目导入到Android Studio 中,报错 ls文件导入错误 laya2.0 GameConfig怎么更新有scene的脚本? 官方"3D角色脚本控制与碰撞检测"这个方...

来源: Laya_社区 发布时间: 20200226

116. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ 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

117. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 68%]

...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

118. Laya.Script 常驻脚本 DotDestroyOnLoad [ 68%]

...命令? 脚本组件添加对象问题 Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 问题状态 最新活动: 2019-05-23 11:57 浏览: 1081 关注: 2 人

来源: Laya_社区 发布时间: 20190125

119. laya.d3.core.particleshuriken.ShuriKenParticle3D_API3.0 [ 68%]

...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

120. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sp...

来源: Laya3.0_文档 发布时间: 20251010