Ui错乱问题

用场景编辑器和UI编辑器弄了一个界面,在编辑器里面显示是正常的,电视在程序里面显示去有问题
— Begin quote from ____

— End quote

加载的代码
auto scene = Scene::create();
auto layer = cocostudio::SceneReader::getInstance()->createNodeWithSceneFile(“publish/testScene.json”);
scene->addChild(layer);
director->runWithScene(scene);

cocos studio版本1.5.0.0
cocos2d-x-3.1.1

请大神指点

界面由两张图片图,一张是蓝色条那部分,姑且叫做B图片,剩下的是一张图片,姑且叫做A图片,B是A图片节点的孩子

你好,很抱歉,我这里拿3.1.1版本测试了这个工程,发现显示是正确的,建议您检查是否做过其他设置,或者提供一个完整的示例。

提示:在3.1版本对UI调整了不少,所以建议更新版本。

我是将这个工程导出后的resource文件下的publish拷到cocos2d 3.11自带cpp-test win32工程下的resource下,然后改了AppDelegate.cpp下
AppDelegate::applicationDidFinishLaunching()函数最后几句。我把最后几句全部贴出来
auto scene = Scene::create();

// auto layer = new TestController();
auto layer = cocostudio::SceneReader::getInstance()->createNodeWithSceneFile(“publish/testScene.json”);
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WP8) && (CC_TARGET_PLATFORM != CC_PLATFORM_WINRT)
//layer->addConsoleAutoTest();
#endif
//layer->autorelease();
// layer->addConsoleAutoTest();
scene->addChild(layer);
director->runWithScene(scene);

// Enable Remote Console

#if (CC_TARGET_PLATFORM != CC_PLATFORM_WINRT)
//auto console = director->getConsole();
//console->listenOnTCP(5678);
//Configuration *conf = Configuration::getInstance();
//bool isAutoRun = conf->getValue(“cocos2d.x.testcpp.autorun”, Value(false)).asBool();
//if(isAutoRun)
//{
// // layer->startAutoRun();
//}
#endif

return true;