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

大约有 6 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0032 秒)

1. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

... treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child2 ' />" + "<file label='child3 ' />" + "<file label='child4 ' />" + "<file label='child5 ' />" + "</dir>" + "<dir label='box2' isOpen='false'>" + "<fil...

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

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

...括子节点下 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_文档 发布时间: 20250217

3. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...个名字的子节点,通常会调用如下方法来获取子节点 getChildByName("xxx") /** * 根据子节点的名字,获取子节点对象。 * @param name 子节点的名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child &a...

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

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

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

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

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

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

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

6. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...; if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake():...

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