Hello,
I wanted use cocos studio in our existing game for desigh UI elements and effects setup.
I created simple scene with one button in the center of display. Export csb file and load it the game with
auto rootNode = CSLoader::createNode("MainScene.csb");
addChild(rootNode, 10);
The button is placed completely wrong. The weird think is that position depends on view in Studio. When I choose 480x320 it is nearly in the center but when I use for example 1024x768 it is wrong in the corner.
How can be position dependent on view type?
I looked into code where position is loaded and the position is just set to the sprite but there is no computation based on current scale / display size etc. And that position is different when I change the view on different resolution…