|
||||||||||||||||
|
||||||||||||||||
Camera.orthographic
var orthographic : boolDescriptionIs the camera orthographic (true) or perspective (false)? When ortho is true, camera's viewing volume is defined by orthographicSize.
JavaScripts
// Set the camera to be orthograpghic
camera.orthographic = true;
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { camera.orthographic = true; } }
import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): camera.orthographic = true
JavaScripts
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { Camera.main.orthographic = true; } }
import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): Camera.main.orthographic = true |
|
|||||||||||||||