require("Editor.CompileFile") local function processAnimation(fileName) local animationClip = cc.AnimationClipFileCache:getInstance():load(fileName); print("载入AnimationClip:" , fileName); end -- 生成所有语言 function generateAnimationClips(textureFile) local function saveui(fileName) -- 返回pathName , baseName , ext local pathName , baseName , ext = string.splitFilename(fileName); print(pathName , baseName , ext); if string.lower(ext) == "animation" then processAnimation(fileName); end end visitPath("res" , saveui); cc.AnimationClipFileCache:getInstance():saveToFile(textureFile); end