kingBook

导航

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){
	
});

posted on 2020-05-21 11:14  kingBook  阅读(451)  评论(0编辑  收藏  举报