Class OculusSettings
Inheritance
OculusSettings
Syntax
[Serializable]
public class OculusSettings : ScriptableObject
Fields
DashSupport
Enable or disable Dash support. This inintializes the Oculus Plugin with Dash support which enables the Oculus Dash to composite over the Unity application.
Declaration
[SerializeField]
[Tooltip("Enable Oculus Dash Support")]
public bool DashSupport
Field Value
FocusAware
If enabled, the application will continue running when system overlays appear.
Declaration
[SerializeField]
[Tooltip("Enable Focus Aware mode")]
public bool FocusAware
Field Value
LowOverheadMode
If enabled, the GLES graphics driver will bypass validation code, potentially running faster.
Declaration
[SerializeField]
[Tooltip("Enable low overhead mode")]
public bool LowOverheadMode
Field Value
m_StereoRenderingModeAndroid
The current stereo rendering mode selected for Android-based Oculus platforms
Declaration
[SerializeField]
[Tooltip("Set the Stereo Rendering Method")]
public OculusSettings.StereoRenderingModeAndroid m_StereoRenderingModeAndroid
Field Value
m_StereoRenderingModeDesktop
The current stereo rendering mode selected for desktop-based Oculus platforms
Declaration
[SerializeField]
[Tooltip("Set the Stereo Rendering Method")]
public OculusSettings.StereoRenderingModeDesktop m_StereoRenderingModeDesktop
Field Value
ProtectedContext
If enabled, the Oculus SDK will create a protected graphics context. Has a slight overhead; only use if needed for protected content.
Declaration
[SerializeField]
[Tooltip("Enable a protected graphics context")]
public bool ProtectedContext
Field Value
s_Settings
Declaration
public static OculusSettings s_Settings
Field Value
SharedDepthBuffer
Enable or disable support for using a shared depth buffer. This allows Unity and Oculus to use a common depth buffer which enables Oculus to composite the Oculus Dash and other utilities over the Unity application.
Declaration
[SerializeField]
[Tooltip("Enable a shared depth buffer")]
public bool SharedDepthBuffer
Field Value
V2Signing
Enable this if you are building for Quest. This enables application signing with the Android Package (APK) Signature Scheme v2. Disable v2 signing if building for Oculus Go.
Declaration
[SerializeField]
[Tooltip("Configure Manifest for Oculus Quest")]
public bool V2Signing
Field Value
Methods
Awake()
Declaration
GetStereoRenderingMode()
Declaration
public ushort GetStereoRenderingMode()
Returns