Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Scaling/Fitting Static 2D Scene to Multiple Resolutions

Discussion in '2D' started by LiberLogic969, Nov 6, 2014.

  1. LiberLogic969

    LiberLogic969

    Joined:
    Jun 29, 2014
    Posts:
    138
    Hello, I'm trying to figure out how to set up my Camera and Scene so that the same view is visible in multiple resolutions. My game is only targeted for PC. My sprites Pixels to Units is 32. The Camera never moves and the player can wrap around the left and right of the screen. I have a few GameObjects and Colliders set up around the Camera for various gameplay related functions. Now, the effect I want to achieve is to scale the same static view for various resolutions without cutting off or extending the "play area". I don't mind having to use black borders/bars. The height of the play area is the most important.. and also the placement of all the colliders and spawners needs to remain the same in relation to the scale of the "play area". I've done some research on Google about this topic and I just cant figure out what I need to do. I'm still not so sure I understand Aspect Ratio and how it relates to resolutions and all that. I know this is pretty basic stuff, I've just never found a really in depth explanation of it all that applies to Unity and the Camera component. If anyone could point me in the right direction it would be awesome. Any help is greatly appreciated.
     
  2. LiberLogic969

    LiberLogic969

    Joined:
    Jun 29, 2014
    Posts:
    138
    I believe I've found a solution.
     
    Last edited: Nov 11, 2014
  3. quietchaos

    quietchaos

    Joined:
    Sep 2, 2015
    Posts:
    5
    what was it?