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

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

61. 骨骼动画-换装 [ 71%]

...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

62. laya.physics.Physics_API3.0 [ 70%]

...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

63. 粒子会不会有内存泄漏? [ 69%]

...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

64. 3D中的Animator如何从指定的某一帧开始播放动画 [ 69%]

...从完整动画里截断一个新的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

65. [LayaAir3]Laya3.2.2版Spine 3.8,Spine2DRenderNode动画播放完毕后,playState返回不正确 [ 68%]

...题,非循环动画播放结束后,状态应该为 Spine2DRenderNode.STOPPED 但是引擎返回了 Spine2DRenderNode.PAUSED   简单分析一下,_update 里调用了 stop(),将this._currentPlayTime = 0; 但是紧接着后面又将 this._currentPlayTime = state.getCurrentPlayTime(this.tra...

来源: Laya_社区 发布时间: 20241202

66. laya.ani.AnimationPlayer_API3.0 [ 68%]

...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

67. 骨骼动画-Spine事件 [ 67%]

...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

68. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 67%]

...间增加粒子播放进度,并暂停播放。 ShurikenParticleSystem  stop():void 停止发射粒子。 ShurikenParticleSystemEvents Event Summary Defined By  complete完成一次循环时调度。ShurikenParticleSystem  paused暂停时调度。ShurikenParticleSystem  played开始播放...

来源: laya_api 发布时间: 20170929

69. 骨骼动画-Spine事件 [ 67%]

...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

70. 获取lh动画控制失败【已解决】 [ 66%]

....islooping = true;                      zombieAnimator.stop();   错误提示:TypeError: Cannot read property 'getComponentByType' of undefined 看例程关于层级的不是很详细,自己也不是很理解这个关系,麻烦给看下是什么问题呢,谢谢。 以是...

来源: Laya_社区 发布时间: 20180122