核心代码如下:
auto UI = cocostudio::GUIReader::getInstance()->widgetFromJsonFile("MyUi_1.json");
this->addChild(UI);
ActionManagerEx::getInstance()->playActionByName("MyUi_1.json", "Animation0");
搞了一天快累死了,下次有空再详细编辑。
核心代码如下:
auto UI = cocostudio::GUIReader::getInstance()->widgetFromJsonFile("MyUi_1.json");
this->addChild(UI);
ActionManagerEx::getInstance()->playActionByName("MyUi_1.json", "Animation0");
搞了一天快累死了,下次有空再详细编辑。
https://www.bilibili.com/video/BV1k8411575T/?vd_source=d68ed178f151e80fea1e02efd205802c