Search Unity

2 cameras with different aspect ratios

Discussion in 'Editor & General Support' started by thunderdev321, Apr 12, 2017.

  1. thunderdev321

    thunderdev321

    Joined:
    May 5, 2016
    Posts:
    5
    I need 2 cameras in my scene, the main camera, and a second camera to display a kinect webcam feed. I need it to be the exact size of the plane on which I'm applying the video texture (eg. no letterboxing). This is because I use the camera to caculate color space coordinates, if it's another size the values will be off.

    When I try to change the other camera's aspect it comes out square

    camera.aspect = 16 / 9;

    Any idea what I'm doing wrong ?