Is the camera orthographic (true) or perspective (false)?
// Set the camera to be orthograpghic camera.orthographic = true;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { camera.orthographic = true; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: camera.orthographic = true
// Set the main camera to be orthographic Camera.main.orthographic = true;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { Camera.main.orthographic = true; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: Camera.main.orthographic = true