ドキュメント

Unity Engine

Unity Engine

fieldOfView

The field of view of the projection in degrees.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
注意
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; }}