I just fixed another issue regarding the scaling inside a ScreenViewport
. And yet another problem arises:
If I'm understanding the wiki correctly, a ScreenViewport
does not scale or stretch the content in any way. In my case it somehow does:
When the game is started, it looks like this:
And after resizing the window (e.g. making it wider) it looks like this (obviously stretched...):
(The code is mostly still the same as in the linked question).
Since I couldn't find a example of using a ScreenViewport
with unitScale
yet, I have no idea how to make this work... Thanks in advance :)