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){
	
});
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章