Search Unity

Resolved Temporary set Resolution to 16:9

Discussion in 'General Graphics' started by ClaudiaTheDev, Aug 28, 2021.

  1. ClaudiaTheDev

    ClaudiaTheDev

    Joined:
    Jan 28, 2018
    Posts:
    331
    The player can play my game on PC with any resolution. This is intended and should not be changed.

    But for cutscenes i need to enforce a 16:9 resolution to ensure they look good and certain objects are visibile or not visibile.

    Question:
    Is there a way to set the resolution temporary to a specific value (for me it's 16:9)?

    Here is a fictive example:
    I have these objects in my scene
    A - Player
    B - Egg
    C - NPC
    upload_2021-8-28_13-26-20.png

    I need that the Player-A and NPC-C are visbile, but the Egg-B should not be visibile. I recorded the cutscene so that it works for a 16:9 resolution:

    upload_2021-8-28_13-28-37.png

    For wider resolutions i came up to add some movie stripes at the left and right corner. This is done with images on UI and works fine.
    upload_2021-8-28_13-30-19.png

    My problem
    For resolutions where height is bigger than 16:9 aspect ratio i don't know how to achieve the 16:9 resolution with the camera being same distance.

    upload_2021-8-28_13-31-47.png
     
  2. ClaudiaTheDev

    ClaudiaTheDev

    Joined:
    Jan 28, 2018
    Posts:
    331
    PutridEx likes this.