Search Unity

Question Unity Pixel Perfect Camera Scaling Questions

Discussion in '2D' started by minikaratekid, Mar 17, 2021.

  1. minikaratekid

    minikaratekid

    Joined:
    Feb 23, 2013
    Posts:
    3
    Hi all,

    I'm having some issues with the 2D Pixel Perfect Camera when dealing with full resolution displays. My target resolution is 848 x 477 on the pixel perfect camera (which is a 16:9 aspect ratio). When playing the game at 1920 x 1080, the camera does not take up the full screen. I see beyond what I set the bounds of the camera to be. When I enable crop frame, it locks the view to the camera bounds as it should, but the black bars are present, which is preventing the game from rendering fully across the 1920 x 1080 screen. My question is, how to I get the camera to take up the full screen. I figured if my reference resolution has the same aspect ratio as my screen, it should scale properly and take up the full screen. Why is this not occurring? And how would I go about fixing it? Attached is a screenshot of my game view and pixel perfect camera settings. Any help would be appreciated, thanks in advance! Capture.JPG