CameraExtensions.GetDistanceForFrustumHeight(Camera, Single) Method
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.
C++
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
- camera
- UnityEngine.Camera
The camera to get the distance from
- frustumHeight
- Single
The frustum height
Produkt | Versionen |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |