CameraExtensions.GetDistanceForFrustumHeight(Camera, Single) Method
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.
Gets the distance to the camera that a specific frustum height would be at.
public:
[System::Runtime::CompilerServices::Extension]
static float GetDistanceForFrustumHeight(UnityEngine::Camera ^ camera, float frustumHeight);
public static float GetDistanceForFrustumHeight (this UnityEngine.Camera camera, float frustumHeight);
static member GetDistanceForFrustumHeight : UnityEngine.Camera * single -> single
<Extension()>
Public Function GetDistanceForFrustumHeight (camera As Camera, frustumHeight As Single) As Single
Parameters
- camera
- UnityEngine.Camera
The camera to get the distance from
- frustumHeight
- Single
The frustum height