Cocos Creator Editor 创建.anim文件
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){
});