let animObject={
"__type__": "cc.AnimationClip",
"_name": "",
"_objFlags": 0,
"_duration": 0,
"sample": 60,
"curveData": {},
"events": []
};
let data=JSON.stringify(animObject,null,"\t");
Editor.assetdb.create("db://assets/textures/xx.anim",data,function (err,results){
});
Cocos Creator Editor 创建.anim文件
猜你喜欢
转载自www.cnblogs.com/kingBook/p/12929456.html
今日推荐
周排行