# FocalLengthInfo (/zh-CN/api-reference/rtc/unity/class-focallengthinfo)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_focallengthinfo__prototype"></a>

```csharp
public class FocalLengthInfo
    {
        public int cameraDirection;
        public CAMERA_FOCAL_LENGTH_TYPE focalLengthType;

        public FocalLengthInfo(int cameraDirection, CAMERA_FOCAL_LENGTH_TYPE focalLengthType)
        {
            this.cameraDirection = cameraDirection;
            this.focalLengthType = focalLengthType;
        }
        public FocalLengthInfo()
        {
        }

    }
```

<a id="class_focallengthinfo__detailed_desc"></a>

:::note
注： 仅适用于 Android 和 iOS。
:::

<a id="class_focallengthinfo__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="cameradirection"></a>
<Parameter name="cameraDirection">

摄像头方向。详见 [CAMERA_DIRECTION](/zh-CN/api-reference/rtc/unity/enum-cameradirection)。

</Parameter>
<a id="focallengthtype"></a>
<Parameter name="focalLengthType">

焦距类型。详见 [CAMERA_FOCAL_LENGTH_TYPE](/zh-CN/api-reference/rtc/unity/enum-camerafocallengthtype)。

</Parameter>
</ParameterList>
