orthographic
Is the camera orthographic ( true ) or perspective ( false )?
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool orthographic { get; set; }
Remarks
When ortho is true, camera's viewing volume is defined by Camera.orthographicSize.
When orthographic is false, camera's viewing volume is defined by Camera.fieldOfView.
NOTE: Deferred rendering is not supported when using Orthographic projection. If the camera's projection mode is set to Orthographic, the camera will always use Forward rendering.
Additional Resources: camera component, Camera.transparencySortMode.