require("Editor.CompileFile") local function processAnimation(fileName) local Material = cc.MaterialFileCache:getInstance():load(fileName); print("载入Material:" , fileName); end -- 生成所有语言 function generateMaterials(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.MaterialFileCache:getInstance():saveToFile(textureFile); end