Editar

Partilhar via


CameraExtensions.GetDistanceForFrustumHeight(Camera, Single) Method

Definition

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

Returns

Applies to