大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...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
... 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_文档 发布时间: 20241014
...._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_文档 发布时间: 20241014