Search Unity

How to make game fit in all screen size - Cinemachine perspective projection

Discussion in 'Cinemachine' started by Minzie, Aug 17, 2019.

  1. Minzie

    Minzie

    Joined:
    Jul 26, 2019
    Posts:
    77
    Hello. I'm creating a 2D game with "perspective" projection & I'm using Cinemachine. Can you help to advice on how I can make the game fit in all screen size? I've tried to search in Google for days but it only show how to fix it in "orthographic" projection using normal main camera instead of Cinemachine. Please help!
    Thanks.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    That really depends on the geometry of your game, and what you mean by "fit". With a perspective camera, the size of the visible portion of the world is proportional to the distance from the camera, because the the camera view is pyramid-shaped. Maybe you can post an illustration of what you're trying to achieve.