기술 자료

Unity Engine

Unity Engine

fieldOfView

The field of view of the projection in degrees.
읽는 시간 1분최근 업데이트: 한 달 전

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; }}