大约有 23 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...ature); Laya.stage.on(Event.CLICK,this,onClick); mArmature.play(0,false);//设置初始位置 mArmature.index=this.index; mArmature.pos(500,500) } private function onClick():void { mArmature.play("stand",true);//从初始位置开始继续播放 mArmature.player.currentTime=15 * 1000 / mArmature.pla...
来源: Laya_社区 发布时间: 20170509
spine动画设置插槽皮肤没效果 spine动画设置插槽皮肤没效果。在动画播放结束的时候调用replaceSlotSkinByIndex或replaceSlotSkinName,showSlotSkinByName,showSlotSkinByIndex都没有效果,动画都没有改变。 调试的时候,在showDisplayByIndex函数里的th...
来源: Laya_社区 发布时间: 20180106
...mation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画 // 获取动画的边界信息 var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) t...
来源: Laya_社区 发布时间: 20170627
List设置滚动到指定位置之后,无法往回拖动 在panl里添加List之后,让List滚动到指定索引之后,出现List无法往回拖动到第一个索引的情况 没设置滚动之前是图1和2,设置滚动之后是图3和4 往后拖动就无法拖到图2了 附件 : --> 20...
来源: Laya_社区 发布时间: 20171227
...adAtlas(AniConfPath); // 加载图集动画 ani.interval = 1000; // 设置播放间隔(单位:毫秒) ani.index = 0; // 当前播放索引 console.log(ani.index); ani.play(); console.log(ani.index); var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width...
来源: Laya_社区 发布时间: 20160712
...可以先侦听一个计时器,当到第几帧后停止播放stop(),并设置skeleton的index值,指向具体的帧数即可。
来源: Laya_社区 发布时间: 20170117
...资源。建议使用“.atlas”文件(*使用时不需要加入类型设置代码*)。 (图3) #### 2.2 加载动画图集资源 通过`laya.display.Animation`类的`loadAtlas()`方法加载角色的图集动画资源,该方法的基础说明如图4所示。 (图3) #### 2.2 加载动画图集资源 通过`laya.display.Animation`类的`loadAtlas()`方法加载角色的图集动画资源,该方法的基础说明如图4所示。 ![图...
来源: Laya2.0_文档 发布时间: 20210715