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

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

1. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 100%]

...5, 0.5, 0.5); var aniSprite3d: Sprite3D = (<Sprite3D>this.layaMonkey.getChildAt(0)); //获取动画组件 var animator: Animator = (<Animator>aniSprite3d.getComponent(Animator)); //创建动作状态 var state: AnimatorState = new AnimatorState(); //动作名称 state.name = "run"; //动...

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

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

... 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); } } } //处理按钮缩放事件 onButtonScaleEvent(target: ...

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

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

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

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

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

...._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); } } this.addChild(this._particle); this._isInited = true; } //粒...

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

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

...._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); } } this.addChild(this._particle); this._isInited = true; } //粒...

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