CameraExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension methods for the Unity's Camera class
public static class CameraExtensions
type CameraExtensions = class
Public Module CameraExtensions
- Inheritance
-
CameraExtensions
Methods
| Name | Description |
|---|---|
| GetDistanceForFrustumHeight(Camera, Single) |
Gets the distance to the camera that a specific frustum height would be at. |
| GetFrustumSizeForDistance(Camera, Single) |
Gets the frustum size at a given distance from the camera. |
| GetHorizontalFieldOfViewDegrees(Camera) |
Get the horizontal FOV from the stereo camera in degrees |
| GetHorizontalFieldOfViewRadians(Camera) |
Get the horizontal FOV from the stereo camera in radians |
| IsInFOV(Camera, Vector3) |
Test if a point will be rendered on the screen in either eye. |
| IsInFOVCone(Camera, Vector3, Single) |
Test if a point in the cone inscribed into the view frustum of the given camera. |