- Home /
Fullscreen stretching
Hello! I am using a 2D orthographic camera and I have a problem:
When I set my game to fullscreen Screen.SetResolution(targetResolution.width, targetResolution.height, GameIsFullscreen);
it always has black bars on the sides.
I know it is kinda vague asking for help on this, but I have tried so many things, but I'm sure I am missing something.
It's like, by default Unity is not stretching but adding black bars instead, and I want to stretch :(
camera.aspect and orthographic size don't work for sure, trying .rect right now, but I have spent over 6 hours on this... I honestly don't know anymore.
It's just, I have the target resolution, and the aspect ratio, and it works normally, but with fullscreen... Those black borders to the sides... Any help is appreciated :)