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

Aspect Ratio Behaviour

Discussion in 'Scripting' started by sbalaniqf, Sep 5, 2015.

  1. sbalaniqf

    sbalaniqf

    Joined:
    Jul 30, 2015
    Posts:
    2
    Is there a way to tell Unity how to behave under different aspect ratios? I'm basically designing my game from the bottom right towards the top left. I've made such that even the smaller 3:2 and 4:3 aspect ratios will be playable, but larger aspect ratios will have more flavourful scenery.

    However for the larger aspect ratios the camera expands in all directions. Is there a way for me to lock or anchor the camera so that it only grows upwards and leftwards to fullfill these aspect ratios?
     
  2. SnakeTheRipper

    SnakeTheRipper

    Joined:
    Dec 31, 2014
    Posts:
    136
    Maybe changing the camera Field of View (FOV) ?
     
  3. sbalaniqf

    sbalaniqf

    Joined:
    Jul 30, 2015
    Posts:
    2
    Errrr this might seem silly but which option is the Field of View?
    Is it in the transform component or in the Camera component.

    IN the camera component I have


    Projection, Size, Clipping Planes, Viewport Rect, Depth, Rendering Path, Target Texture , occlusion culling and HDR.
     
  4. SnakeTheRipper

    SnakeTheRipper

    Joined:
    Dec 31, 2014
    Posts:
    136
    It's on the Camera component.