Auf Englisch lesen Bearbeiten

Freigeben über


CameraExtensions.GetDistanceForFrustumHeight(Camera, Single) Method

Definition

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

Parameters

camera
UnityEngine.Camera

The camera to get the distance from

frustumHeight
Single

The frustum height

Returns

Applies to

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