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