Revert the aspect ratio to the screen's aspect ratio.
camera.ResetAspect();
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { camera.ResetAspect(); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: camera.ResetAspect()