fieldOfView
The field of view of the projection in degrees.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
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; }}