Camera.ResetAspect Manual     Reference     Scripting  
Scripting > Runtime Classes > Camera
Camera.ResetAspect

function ResetAspect () : void

Description

Revert the aspect ratio to the screen's aspect ratio.

Call this to end the effect of setting aspect.

JavaScripts
camera.ResetAspect();

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
camera.ResetAspect();
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
camera.ResetAspect()