导出ExportJson格式的文件,Lua无法播放动画,这是什么原因?

ccs.ActionManagerEx:getInstance():playActionByName(‘MoveAnimation_1/MoveAnimation_1.ExportJson’,‘Animation0’);
这句代码没反应

能否提供更详细的出错和代码,这一句没有什么错。

楼主是用animation编辑器导出的吧?
试试这样写:
ccs.ArmatureDataManager:getInstance():addArmatureFileInfo(“MoveAnimation_1/MoveAnimation_1.ExportJson”)
local armature = ccs.Armature:create(“Animation0”)
armature:getAnimation():playWithIndex(0)

找到原因了
playActionByName(‘MoveAnimation_1/MoveAnimation_1.ExportJson’,‘Animation0’);
改为:
playActionByName(‘MoveAnimation_1.ExportJson’,‘Animation0’); 就好了,不带路径