CocoStudio1.6UI编辑器动画播放

     /* 加载UI */  
    auto UI = cocostudio::GUIReader::getInstance()->widgetFromJsonFile("DNSMGameWinUI_1.ExportJson");  
    this->addChild(UI);  
     //播放动画Animation  

    cocostudio::ActionManagerEx::getInstance()->playActionByName("DNSMGameWinUI_1.ExportJson", "Animation");  

 注意:DNSMGameWinUI_1.ExportJson不要有路径,这个坑不小,浪费我半个小时


你可能感兴趣的:(CocoStudio1.6UI编辑器动画播放)