I am using LibGDX to make a game for Android and I am using 2
Viewports. One for UI and one for the actual game content. My problem is I can't find a good way to scale my UI using a
This is a picture of my UI using a
As you can see it adds space on the top and bottom to fit the screen, but I want my pause button to stay on the top of the screen. I tried using a
StretchViewport and that worked well for the pause button, but then the joysticks were no longer circle because they were distorted.
Is there a way to make a
StretchViewport that only stretches the middle? (since nothing will be in the middle I don't care about that. Should I make a custom
Viewport? And if so, how would I go about that? Thank you for any help!