# FocalLengthToFieldOfView(float, float)

> Converts focal length to field of view.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static float FocalLengthToFieldOfView(float focalLength, float sensorSize)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Focal length in millimeters.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Sensor size in millimeters. Use the sensor height to get the vertical field of view. Use the sensor width to get the horizontal field of view.

### Returns

| Type                                                          | Description               |
| ------------------------------------------------------------- | ------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | field of view in degrees. |
