大约有 4 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0023 秒)
...时,可以用个此方法可获取子节点 获取子节点对象数量numChildren 通过调用父节点的numChildren属性,可以获得父节点下一级的所有子节点的数量,可用来遍历所有子节点使用,注意不包括子节点下的子节点 获取父节点对象parent 通...
来源: Laya3.0_文档 发布时间: 20251010
...包括子节点下 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
...子系统,用于后面整体播放 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
...子系统,用于后面整体播放 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