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