ドキュメント

Unity Engine

Unity Engine

usePhysicalProperties

Enable usePhysicalProperties to use physical camera properties to compute the field of view and the frustum.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool usePhysicalProperties { get; set; }

Remarks

The physical properties include the sensor size, lens shift, and focal length.

Examples

using UnityEngine;public class ExampleScript : MonoBehaviour{ void Start() { Camera cam = gameObject.GetComponent<Camera>(); cam.usePhysicalProperties = true; cam.focalLength = 60f; }}