大约有 254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(161) Laya3.0_api(22) laya_api(21) Laya2.0_api(16) Laya2.0_文档(13) Laya2.0_示例(8) Laya_示例(8) Laya3.0_文档(5)
...re.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurrSkinIndex >= skinLength) { mCu...
来源: Laya2.0_示例 发布时间: 20251130
...ntactCount getJointCount hasListener off offAll offAllCaller on once start stop updatePhysicsByWorldRoot enable Constructors constructor new Physics(): Physics Defined in laya/physics/Physics.ts:39 Returns Physics Properties box2d box2d: any = (<any>window).box2d Defined in laya/physics/Physic...
来源: Laya3.0_api 发布时间: 20231115
...e.addChild(sp); setTimeout(function () { var emitter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya.stage.removeChild(sp); onAssetsLoaded(settings); }, 100); } })(); 这个例子 是不是说明 粒子有内存泄漏? 我不断new Particle2D 100ms后销毁该...
来源: Laya_社区 发布时间: 20170103
...从完整动画里截断一个新的clip,播放这个新的clip animator.stop(); var percent:Number = animator.currentFrameTime / animator.getClip("Draw").duration(); //trace("currentFrameTime: " + animator.currentFrameTime + " endTime: " + animator.getClip("Draw").duration()); var totalAnimationC...
来源: Laya_社区 发布时间: 20180725
...题,非循环动画播放结束后,状态应该为 Spine2DRenderNode.STOPPED 但是引擎返回了 Spine2DRenderNode.PAUSED 简单分析一下,_update 里调用了 stop(),将this._currentPlayTime = 0; 但是紧接着后面又将 this._currentPlayTime = state.getCurrentPlayTime(this.tra...
来源: Laya_社区 发布时间: 20241202
...Index Constructors constructor Properties isCache playbackRate returnToZeroStopped Accessors cacheFrameRate cacheFrameRateInterval cachePlayRate currentAnimationClipIndex currentFrameTime currentKeyframeIndex currentPlayTime currentTime destroyed overallDuration paused playDuration playEnd playStart...
来源: Laya3.0_api 发布时间: 20231115
...d(mArmature); mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } function onEv...
来源: Laya_示例 发布时间: 20251130
...间增加粒子播放进度,并暂停播放。 ShurikenParticleSystem stop():void 停止发射粒子。 ShurikenParticleSystemEvents Event Summary Defined By complete完成一次循环时调度。ShurikenParticleSystem paused暂停时调度。ShurikenParticleSystem played开始播放...
来源: laya_api 发布时间: 20170929
...5, 0.5); mArmature.on(Event.LABEL, this, this.onEvent); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); } completeHandler() { this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getAnimNum(); if (mCurrIndex >= aniNum) { mCurrIndex = 0; } mArmature.play(mCurrIndex, fals...
来源: Laya2.0_示例 发布时间: 20251130
....islooping = true; zombieAnimator.stop(); 错误提示:TypeError: Cannot read property 'getComponentByType' of undefined 看例程关于层级的不是很详细,自己也不是很理解这个关系,麻烦给看下是什么问题呢,谢谢。 以是...
来源: Laya_社区 发布时间: 20180122