Search Unity

[Unity 4.3] Configure Camera size to 1:1 pixel aspect ratio

Discussion in '2D' started by BenoitFreslon, Nov 30, 2013.

  1. BenoitFreslon

    BenoitFreslon

    Joined:
    Jan 16, 2013
    Posts:
    163
    Hello,

    I'm new with Unity.
    I would like to set the camera in order to get 1:1 pixel aspect ratio.

    I have a iPad format 1024x768.

    If I add a 1024x768 picture in the background I have to set the size to 3,83.
    With this value the camera field matches with the background image.

    Please can you tell me if that I'm doing is good?

    Thanks ;).
     
  2. bryantdrewjones

    bryantdrewjones

    Joined:
    Aug 29, 2011
    Posts:
    147
    The correct camera size for your resolution is actually 3.84. You were very close :) The formula is Target Screen Height / Pixels to Units Ratio / 2. The pixels to units ratio is defined in your texture importer inspector. It defaults to 100.