Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


fieldOfView

The field of view of the projection in degrees.
Read time 1 minuteLast updated 7 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 float fieldOfView { get; set; }

Remarks

This is the vertical field of view; horizontal FOV varies depending on the Projector.aspectRatio. Field of view is ignored when projector is orthographic (see Projector.orthographic). Additional Resources: projector component.

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { // Get the projector Projector proj = GetComponent<Projector>(); // Use it proj.fieldOfView = 80.0f; }}