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

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

1. 节点管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...时,可以用个此方法可获取子节点 获取子节点对象数量numChildren 通过调用父节点的numChildren属性,可以获得父节点下一级的所有子节点的数量,可用来遍历所有子节点使用,注意不包括子节点下的子节点 获取父节点对象parent 通...

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

2. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...包括子节点下 searchButton(ui: Laya.Node) { for (let i = 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton(child); } } } //处理按钮缩...

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

3. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...子系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } ...

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

4. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 44%]

...子系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } ...

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