[]ani时间轴动画问题
Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded));
function onLoaded() {
//创建一个Animation实例
var tl = new Laya.Animation();
//加载动画文件
tl.loadAnimation("TimeLine.ani");
//添加到舞台
Laya.stage.addChild(tl);
//播放Animation动画
tl.play(0,true);
}
报错:
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
loader callback cost a long time:333 url=TimeLine.ani
ide:
function onLoaded() {
//创建一个Animation实例
var tl = new Laya.Animation();
//加载动画文件
tl.loadAnimation("TimeLine.ani");
//添加到舞台
Laya.stage.addChild(tl);
//播放Animation动画
tl.play(0,true);
}
报错:
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
lost skin: move/jiantou2.png ,you may load pics first
loader callback cost a long time:333 url=TimeLine.ani
ide:
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Monica - 知识达人
赞同来自: leitingxx
你预加载的是json资源,所以需要指定资源类型为ATLAS。
你也可以在UI编辑模式下F9打开项目设置把资源类型改为atals的,这样你就不用指定资源类型为ATLAS了