Version: 2019.2

CameraEditorUtils.GetFrustumAspectRatio

Switch to Manual
public static float GetFrustumAspectRatio (Camera camera);

Parameters

cameraCamera to use.

Returns

float The frustrum aspect ratio of the provided camera.

Description

Calculate the frustrum aspect ratio of a camera.