Search Unity

[QUESTION] Camera setting in a mobile project for a different aspect ratios

Discussion in 'Scripting' started by axn1996, Jul 26, 2019.

  1. axn1996

    axn1996

    Joined:
    May 31, 2019
    Posts:
    1
    Hello, i developing a mobile game that is in 3D. This game should support various iOS devices included, but not limited: iPhones and iPads. We have an issue on some iPads, where camera field of view is much bigger than on iPhone and therefore camera capture some parts outside level environment that is unexpected and we should fix that. Please, give us some techniques on developing a game for devices with various resolution and some scripting tricks that tweak camera to show things same (yeah, i mean it looks close to each other).

    Any help is appreciated.
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    You can create and fill some margin betweed game world and offworld so when camera is little bigger than expected it looks normal. Check out how battle field in Clash Royale looks on different devices for an example of good implementation.
     
    axn1996 likes this.