I've made a system that change the CanvasLayers offset to smoothly change between screens, like a scrolling effect. But, this only works on the default resolution (320x180). How I can change the offsets based on the game resolution, since it'll be scaled to the device resolution? (For example, this works on 1280x720 because it's in the same aspect ratio, but don't work on ultrawide )
The offsets math is: -320*n
One of the solutions is changing all the offsets on _ready() to fit the aspect ratio of the game, but since the default resolution is low, I can't find a way to do this.