Version: 2017.2

XRDevice.fovZoomFactor

Switch to Manual
public static float fovZoomFactor ;

Description

Zooms the XR projection.

Set this to zoom the XR projection matrix by scaling the viewing frustum. The value is clamped so that it will never fall below 1.0f. For asymmetric XR projections, setting the FoV doesn't make sense, so use this property to scale the frustum half angles uniformly by a single value.

For example: A symmetric frustum starting with an FoV of 90 degrees, an fovZoomFactor of 2 will scale the viewing frustum so that it has an FoV of 45 degrees.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961