#Fixed Aspect game area w/ Custom letterbox color/texture

1 messages · Page 1 of 1 (latest)

agile jolt
#

Hey, so I am trying to setup a robust little layout for the main game scene, I need it to be a fixed ratio but people might be playing on widescreen or 16:10 4:3 etc. and the normal black bars are a bit boring, I would like to be able to replace it with a custom texture, sort of like a little easter egg for anyone not playing 16:9, I can change the color in the project settings so if nothing is possible I will just have to resort to that, but I'm almost certain its possible to get this setup how i want it.

I've tried many different ways and variations to get this working but the placeholder TextureRect usually just scales along with the the screen even if its within a AspectRatioContainer etc.

Any help would be appreciated 🙂

#

ignore my creepy red face lmao, thats just to showcase what I mean by having a custom texture behind it

agile jolt
#

So I managed to figure it out, it was really simple solution, I have no idea why it didnt work before because i swear I tried this solution, but oh well its working 😛