Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


orthographic

Is the projection orthographic ( true ) or perspective ( false )?
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. Projector component is deprecated now that the Built-In Render Pipeline is deprecated. To use an alternative, refer to the documentation in the component help icon. #from(6000.5)
public bool orthographic { get; set; }

Remarks

When orthographic is true, projection is defined by Projector.orthographicSize.
When orthographic is false, projection is defined by Projector.fieldOfView. Additional Resources: projector component.

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { Projector proj = GetComponent<Projector>(); proj.orthographic = true; }}