大约有 50 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
...象池中。 ani.getControllerLayer().defaultState.on(Laya.AnimatorState2D.EVENT_OnStateExit, () => { aniNode.removeSelf();//删除动画节点 Laya.Pool.recover("effect", aniNode);//回收动画预制体到对象池中,方便下次复用。 }); return aniNode; } //组件被禁用时执行 onDi...
来源: Laya3.0_文档 发布时间: 20251010
... void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration...
来源: Laya3.0_文档 发布时间: 20251010
...bin-wrapper\node_modules\got\index.js:182:22) at Object.onceWrapper (events.js:300:26) at ClientRequest.emit (events.js:210:5) at TLSSocket.socketErrorListener (_http_client.js:406:9) at TLSSocket.emit (events.js:210:5) at emitErrorNT (internal/streams/destroy.js:92:8) ...
来源: Laya_社区 发布时间: 20200211
...lasses | Index | Frames No Frames TerrainChunkProperties | Methods | Events Packagelaya.d3.terrainClasspublic class TerrainChunkInheritanceTerrainChunk RenderableSprite3D Sprite3D Node EventDispatcher Object TerrainChunk 类用于创建地块。 Public Properties Hide Inherited Public Propert...
来源: Laya2.0_api 发布时间: 20190513
...s | Index | Frames No Frames PixelLineSprite3DProperties | Methods | Events Packagelaya.d3.core.pixelLineClasspublic class PixelLineSprite3DInheritancePixelLineSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object PixelLineSprite3D 类用于像素线渲染精灵。 Public Propertie...
来源: Laya2.0_api 发布时间: 20190513
...| Index | Frames No Frames MeshTerrainSprite3DProperties | Methods | Events Packagelaya.d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object TerrainMeshSprite3D 类用于创建网格。 Public Properties...
来源: Laya2.0_api 发布时间: 20190513
...侧属性面板中设置动画事件属性,如图9-1所示 (图9-1) Event Name:在脚本中调用的事件方法名 Params:在脚本中调用事件方式时的传参(字符串),可以设置多个 如图9-2所示,例如对此事件添加一个 “event1” 方法名,添加两个...
来源: Laya3.0_文档 发布时间: 20251118
...prite3D; private animator : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 test(e: Laya.Event) { //动画状...
来源: Laya3.0_文档 发布时间: 20251010
...tion; } } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.t...
来源: Laya3.0_文档 发布时间: 20251010
...| Index | Frames No Frames AnimationPlayerBaseProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationPlayerBaseInheritanceAnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画播放基类,提供了基础的动画...
来源: laya_api 发布时间: 20170929