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

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

81. 关于2.3.0动作克隆问题,AB两个怪物用同一个模型,A的动作会影响B。 [ 78%]

.../attack state.clipStart = clipStart; state.clipEnd = clipEnd; state.clip = this._animator.getDefaultState().clip; this._animator.addState(state);每个状态的clip都是 this._animator.getDefaultState().clip 这个对象。 播放动作时,是根据动作类型设置是否循环。 this._animato...

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

82. 关于多个小动画打包到一个图集动画的问题 [ 78%]

...集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loader.getRes("hero/hero_down2.jpg"); var hero_down3=Laya.lo...

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

83. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 78%]

...3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...

来源: Laya2.0_文档 发布时间: 20210714

84. 我想在动画播放结束后加一个事件,怎么加? [ 78%]

...***233 赞同来自: geo 监听_ani的完成事件 _ani.on(EVENT.COMPLETE, this, function(){}); 2018-04-28 1 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 谢谢! 2018-05-02 0 0 分享 微博 QZONE 微信 AlexNine 赞同来自: 可以直接在play后面加个回调 function playAni(aniPath...

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

85. Animation 先clear当前的动画, 然后从浏览器缓存 加载下一个动画会闪一下,这个怎么解决? [ 78%]

...! 别抢小虎 • 2018-05-08 10:51 /// 加载的时候是这样写的 this.anim.loadAtlas(source , null, cacheName); this.anim.scaleX = 1; this.anim.scaleY = 1; this.anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一...

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

86. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 77%]

...  init( box: GunBox, doll_item: DollItem, doll_area: Area ):void { // if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani.play(0, true, doll_item.animation_name);  this._box = box;  this._fly_site.w = this._box._area.w - 20; ...

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

87. Dialog中编辑的动画如何控制? [ 77%]

...同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick() { this.ani1.stop();//停止播放 this...

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

88. 1.7.6版本 刚体动画加载 [ 77%]

...ivate */ __proto._computeFullKeyframeIndices=function(){ var anifullFrames=this._fullFrames=[]; var templet=this._templet; var cacheFrameInterval=this._cacheFrameRateInterval *this._cachePlayRate; //刚体动画时 templet 是AnimationClip对象 没有getAnimationCount方法!!! for (var i=0,iN...

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

89. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 76%]

...的动画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.lo...

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

90. 关于3D动画的ani监听播放完毕后,播放默认动画不行 [ 76%]

关于3D动画的ani监听播放完毕后,播放默认动画不行 this.mAni.on(Laya.Event.COMPLETE,this,this.aniComplete); this.mAni.play("free") aniComplete(type:number):void {    this.mAni.play("ready"); }   播放完指定动画后,这个回调不执行。   附件 : --> pkwang3D.rar 20...

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