大约有 611 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0107 秒)
... clear clear(): AnimationBase Defined in laya/display/AnimationBase.ts:277 停止动画播放,并清理对象属性。之后可存入对象池,方便对象复用。 Returns AnimationBase 返回对象本身 clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer ...
来源: Laya3.0_api 发布时间: 20231115
...能继续支持AS3版本的源码了。原因是AS3语言不开源,并且停止了维护,导致新的语言特性,无法在AS3里实现,我们继续坚持AS3源码,那就是牺牲了引擎API功能的发展,这肯定是弊大于利的。 第二、从我们引擎使用的比例来分...
来源: Laya_社区 发布时间: 20190906
...ase Overrides AnimationBase.clear Defined in laya/display/Animation.ts:254 停止动画播放,并清理对象属性。之后可存入对象池,方便对象复用。 override Returns AnimationBase clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in...
来源: Laya3.0_api 发布时间: 20231115
...。clip.total="+ clip.total); if (clip.isPlaying == true) { clip.stop();//停止动画。 }else { clip.play();//播放动画。 } } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var clip; Laya.loader.load("resource/ui/clip_num...
来源: Laya3.0_api 发布时间: 20231115
...周期时间内可以发射多次粒子,到达设置的时间后,粒子停止发射 注意:不是一个粒子的生命周期时间,下面会介绍一个粒子的生命周期时间 (动图3)Duration为5的效果,5秒到达时,粒子不在发射,同时Loop要设为不启动 Loop...
来源: Laya3.0_文档 发布时间: 20251010
...周期时间内可以发射多次粒子,到达设置的时间后,粒子停止发射 注意:不是一个粒子的生命周期时间,下面会介绍一个粒子的生命周期时间 (动图3)Duration为5的效果,5秒到达时,粒子不在发射,同时Loop要设为不启动 Loop...
来源: Laya3.0_文档 发布时间: 20250104
...加多个动效。 当一个动效开始播放时,其他动效会自动停止播放。 可以通过LayaAir IDE创建。 Hierarchy FrameAnimation EffectAnimation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag w...
来源: Laya3.0_api 发布时间: 20231115
...rited from AnimationBase.stop Defined in laya/display/AnimationBase.ts:185 停止动画播放。 Returns void stopDrag stopDrag(): void Inherited from Text.stopDrag Defined in laya/display/Sprite.ts:1732 停止拖动此对象。 Returns void timerLoop timerLoop(delay: number, caller: any, method: Fu...
来源: Laya3.0_api 发布时间: 20231115
...掉血 lostHp(role1,1); lostHp(role2,1); } } } } // 如果主角死亡,停止游戏循环 if(this.hero.hp < 1){ Laya.timer.clear(this,onLoop); } // 每隔30帧创建新的敌机 if(Laya.timer.currFrame%60 === 0){ createEnemy(2); } } function lostHp(role,lostHp){ // 减血 role.hp -= lostHp; if(...
来源: Laya_社区 发布时间: 20170525
...e if (other.label === "ground") { //只要有一个盒子碰到地板,则停止游戏 owner.removeSelf(); PhysicsGameMainRT.instance.stopGame(); } } /**使用对象池创建爆炸动画 */ createEffect(): Laya.Sprite { //获取动画预制体的节点对象 const aniNode: Laya.Sprite = this.burstA...
来源: Laya3.0_文档 发布时间: 20251010