TryGetSensorGateFrustum(Camera, Vector3[], Vector3[], out float)
Calculate the frustrum corners from the sensor physical properties, without taking gate fitting into account. To get the actual frustum with gate fit adjustment, use CameraEditorUtils.TryGetFrustum. This method is equivalent to CameraEditorUtils.TryGetFrustum for non-physical cameras. Corners are
阅读时间1 分钟最后更新于 2 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
TryGetSensorGateFrustum(Camera, Vector3[], Vector3[], float)
public static bool TryGetSensorGateFrustum(Camera camera, Vector3[] near, Vector3[] far, out float frustumAspect)
Parameters
Returns
Type | Description |
|---|---|
| bool | Whether the frustrum was calculated. |