【已解决】自适应分辨率问题

引擎和编辑器版本:cocos2dx3.2 + CocosStudio1.5.0.1

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    auto director = Director::getInstance();
    auto glview = director->getOpenGLView();
    if(!glview) {
        glview = GLView::create("My Game");
        director->setOpenGLView(glview);
    }

    glview->setDesignResolutionSize(960, 640, kResolutionExactFit);

    // turn on display FPS
    director->setDisplayStats(true);

    // set FPS. the default value is 1.0/60 if you don't call this
    director->setAnimationInterval(1.0 / 60);

    // create a scene. it's an autorelease object
    auto scene = HelloWorld::createScene();

    // run
    director->runWithScene(scene);

    return true;
}


```


调用glview->setDesignResolutionSize(960, 640, kResolutionExactFit);没有效果,kResolutionShowAll,kResolutionNoBorder也没效果
还需要设置其他什么吗?UI编辑器里勾上自适应分辨率也试过了,只是把根节点的图放到了屏幕正中,没有拉伸或缩放。

解决了!就是这样设置的!之前理解错了!:12: