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. Dismiss Notice

How can I change the size of my camera to fit the play space?

Discussion in '2D' started by EddieSimson, Sep 13, 2020.

  1. EddieSimson

    EddieSimson

    Joined:
    Jul 29, 2020
    Posts:
    2
    Hello everyone,

    Attached are a couple screenshots of what my play space looks like, one from inside Unity and the other from my phone using the mobile tester.

    I would like some help in understanding how to adjust the camera size to fit my blue play area as seen in the screenshots, and further extend this to work on my phone so it doesn't look all funny as it does currently.

    Any help at all would be massively appreciated

    Thanks :)

    Game.png Phone.jpg
     
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    Hello @EddieSimson,

    You can change the orientation of your game in the Editor, by adjusting the aspect ratio in the Game view.

    Also, you can force your game to be portrait in iOS and Android by changing the Player settings.

    You can find more information about how to adjust the aspect ratio of your game in the Editor here: https://docs.unity3d.com/Manual/GameView.html

    How to adjust the player settings in Android here: https://docs.unity3d.com/Manual/class-PlayerSettingsAndroid.html

    And finally, how to adjust the player settings in iOS here: https://docs.unity3d.com/Manual/PlayerSettingsiOS-Resolution.html


    Good luck with your project!
     
  3. EddieSimson

    EddieSimson

    Joined:
    Jul 29, 2020
    Posts:
    2
    Thank you very much for your help!
     
    DiegoDePalacio likes this.