|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.eyeTextureResolutionScale; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.renderViewportScale; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
return XRSettings.enabled; |
|
|
|
#else
|
|
|
|
return false; |
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.isDeviceActive; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.loadedDeviceName; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.supportedDevices; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return (StereoRenderingMode)XRSettings.stereoRenderingMode; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.eyeTextureDesc; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.eyeTextureWidth; |
|
|
|
#endif
|
|
|
|
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
#if ENABLE_XR_MODULE && ENABLE_XR
|
|
|
|
#if ENABLE_VR_MODULE
|
|
|
|
if (enabled) |
|
|
|
return XRSettings.eyeTextureHeight; |
|
|
|
#endif
|
|
|
|