I want to create animation from ExportJson file but it failed to load
It got the error Assert failed: CCAnimationData not exist! and crash.
What’s wrong with my below code?!
static const char s_DragonPList[] = "gfx/character/dragon/dragon_01/A_010.plist";
static const char s_Dragon[] = "gfx/character/dragon/dragon_01/A_010.png";
static const char s_DragonJSon[] = "gfx/character/dragon/dragon_01/A_010.ExportJson";
//async loading export file
CCArmatureDataManager::sharedArmatureDataManager()->addArmatureFileInfo(s_Dragon, s_DragonPList, s_DragonJSon);
//Creat armature by name
CCArmature *armature = CCArmature::create("dragon");