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

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

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

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

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

2. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...回调函数渲染item。 //创建100个对象,注意这里不能使用numChildrennumChildren是只读的。 aList.numItems = 100; 如果新设置的项目数小于当前的项目数,那么多出来的item将放回池里。 使用这种方式生成的列表,如果你需要更新某个item...

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

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

...子系统,用于后面整体播放 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 [ 35%]

...子系统,用于后面整体播放 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

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

...包括子节点下 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