Class CameraBackgroundRenderingModeUtilities
Provides conversion utilities between XRCameraBackgroundRenderingMode and CameraBackgroundRenderingMode.
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
public static class CameraBackgroundRenderingModeUtilities
Methods
ToBackgroundRenderingMode(XRSupportedCameraBackgroundRenderingMode)
Converts an XRCameraBackgroundRenderingMode to a CameraBackgroundRenderingMode.
Declaration
public static CameraBackgroundRenderingMode ToBackgroundRenderingMode(this XRSupportedCameraBackgroundRenderingMode mode)
Parameters
Type | Name | Description |
---|---|---|
XRSupportedCameraBackgroundRenderingMode | mode | The XRCameraBackgroundRenderingMode to convert. |
Returns
Type | Description |
---|---|
CameraBackgroundRenderingMode | The converted CameraBackgroundRenderingMode. |
ToXRSupportedCameraBackgroundRenderingMode(CameraBackgroundRenderingMode)
Converts a CameraBackgroundRenderingMode to an XRCameraBackgroundRenderingMode.
Declaration
public static XRSupportedCameraBackgroundRenderingMode ToXRSupportedCameraBackgroundRenderingMode(this CameraBackgroundRenderingMode mode)
Parameters
Type | Name | Description |
---|---|---|
CameraBackgroundRenderingMode | mode | The CameraBackgroundRenderingMode to convert. |
Returns
Type | Description |
---|---|
XRSupportedCameraBackgroundRenderingMode | The converted XRCameraBackgroundRenderingMode. |