Search Unity

Is it possible to switch to different aspect ratios for different scenes?

Discussion in 'Editor & General Support' started by mjpin7, Mar 24, 2018.

  1. mjpin7

    mjpin7

    Joined:
    Mar 2, 2018
    Posts:
    3
    Hello all,

    I am trying to get it so that certain scenes have certain aspect ratios. For example, Scene1 will have 3:4 but Scene2, when loaded will be 16:9. I have found a couple threads but most where for mobile screen orientation. Any help would be appreciated!
     
  2. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,572
    You could change the Viewport Rect. Get the viewport total dimensions, then calculate which dimension to limit to get the correct ratio and apply accordingly to the Rect.