usePhysicalProperties
Enable usePhysicalProperties to use physical camera properties to compute the field of view and the frustum.
Read time 1 minuteLast updated 6 days ago
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; }}