API reference
API reference
Select your platform
No SDKs available
No versions available

OVRManager Class

Configuration data for Oculus virtual reality.
OVRManager extends MonoBehaviour.
OVRManager extends OVRMixedRealityCaptureConfiguration.

Overview

Public Types

enum
XrApi {
XrApi.Unknown = OVRPlugin.XrApi.Unknown, XrApi.CAPI = OVRPlugin.XrApi.CAPI, XrApi.VRAPI = OVRPlugin.XrApi.VRAPI, XrApi.OpenXR = OVRPlugin.XrApi.OpenXR
}
enum
TrackingOrigin {
TrackingOrigin.EyeLevel = OVRPlugin.TrackingOrigin.EyeLevel, TrackingOrigin.FloorLevel = OVRPlugin.TrackingOrigin.FloorLevel, TrackingOrigin.Stage = OVRPlugin.TrackingOrigin.Stage
}
enum
EyeTextureFormat {
EyeTextureFormat.Default = OVRPlugin.EyeTextureFormat.Default, EyeTextureFormat.R16G16B16A16_FP = OVRPlugin.EyeTextureFormat.R16G16B16A16_FP, EyeTextureFormat.R11G11B10_FP = OVRPlugin.EyeTextureFormat.R11G11B10_FP
}
enum
FoveatedRenderingLevel {
FoveatedRenderingLevel.Off = OVRPlugin.FoveatedRenderingLevel.Off, FoveatedRenderingLevel.Low = OVRPlugin.FoveatedRenderingLevel.Low, FoveatedRenderingLevel.Medium = OVRPlugin.FoveatedRenderingLevel.Medium, FoveatedRenderingLevel.High = OVRPlugin.FoveatedRenderingLevel.High, FoveatedRenderingLevel.HighTop = OVRPlugin.FoveatedRenderingLevel.HighTop
}
enum
FixedFoveatedRenderingLevel {
FixedFoveatedRenderingLevel.Off = OVRPlugin.FixedFoveatedRenderingLevel.Off, FixedFoveatedRenderingLevel.Low = OVRPlugin.FixedFoveatedRenderingLevel.Low, FixedFoveatedRenderingLevel.Medium = OVRPlugin.FixedFoveatedRenderingLevel.Medium, FixedFoveatedRenderingLevel.High = OVRPlugin.FixedFoveatedRenderingLevel.High, FixedFoveatedRenderingLevel.HighTop = OVRPlugin.FixedFoveatedRenderingLevel.HighTop
}
enum
TiledMultiResLevel {
TiledMultiResLevel.Off = OVRPlugin.TiledMultiResLevel.Off, TiledMultiResLevel.LMSLow = OVRPlugin.TiledMultiResLevel.LMSLow, TiledMultiResLevel.LMSMedium = OVRPlugin.TiledMultiResLevel.LMSMedium, TiledMultiResLevel.LMSHigh = OVRPlugin.TiledMultiResLevel.LMSHigh, TiledMultiResLevel.LMSHighTop = OVRPlugin.TiledMultiResLevel.LMSHighTop
}
enum
SystemHeadsetType {
SystemHeadsetType.None = OVRPlugin.SystemHeadset.None, SystemHeadsetType.Oculus_Quest = OVRPlugin.SystemHeadset.Oculus_Quest, SystemHeadsetType.Oculus_Quest_2 = OVRPlugin.SystemHeadset.Oculus_Quest_2, SystemHeadsetType.Meta_Quest_Pro = OVRPlugin.SystemHeadset.Meta_Quest_Pro, SystemHeadsetType.Meta_Quest_3 = OVRPlugin.SystemHeadset.Meta_Quest_3, SystemHeadsetType.Placeholder_12 = OVRPlugin.SystemHeadset.Placeholder_12, SystemHeadsetType.Placeholder_13 = OVRPlugin.SystemHeadset.Placeholder_13, SystemHeadsetType.Placeholder_14 = OVRPlugin.SystemHeadset.Placeholder_14, SystemHeadsetType.Rift_DK1 = OVRPlugin.SystemHeadset.Rift_DK1, SystemHeadsetType.Rift_DK2 = OVRPlugin.SystemHeadset.Rift_DK2, SystemHeadsetType.Rift_CV1 = OVRPlugin.SystemHeadset.Rift_CV1, SystemHeadsetType.Rift_CB = OVRPlugin.SystemHeadset.Rift_CB, SystemHeadsetType.Rift_S = OVRPlugin.SystemHeadset.Rift_S, SystemHeadsetType.Oculus_Link_Quest = OVRPlugin.SystemHeadset.Oculus_Link_Quest, SystemHeadsetType.Oculus_Link_Quest_2 = OVRPlugin.SystemHeadset.Oculus_Link_Quest_2, SystemHeadsetType.Meta_Link_Quest_Pro = OVRPlugin.SystemHeadset.Meta_Link_Quest_Pro, SystemHeadsetType.Meta_Link_Quest_3 = OVRPlugin.SystemHeadset.Meta_Link_Quest_3, SystemHeadsetType.PC_Placeholder_4105 = OVRPlugin.SystemHeadset.PC_Placeholder_4105, SystemHeadsetType.PC_Placeholder_4106 = OVRPlugin.SystemHeadset.PC_Placeholder_4106, SystemHeadsetType.PC_Placeholder_4107 = OVRPlugin.SystemHeadset.PC_Placeholder_4107
}
enum
enum
ColorSpace {
ColorSpace.Unknown = OVRPlugin.ColorSpace.Unknown, ColorSpace.Unmanaged = OVRPlugin.ColorSpace.Unmanaged, ColorSpace.Rec_2020 = OVRPlugin.ColorSpace.Rec_2020, ColorSpace.Rec_709 = OVRPlugin.ColorSpace.Rec_709, ColorSpace.Rift_CV1 = OVRPlugin.ColorSpace.Rift_CV1, ColorSpace.Rift_S = OVRPlugin.ColorSpace.Rift_S, ColorSpace.Quest = OVRPlugin.ColorSpace.Quest, ColorSpace.P3 = OVRPlugin.ColorSpace.P3, ColorSpace.Adobe_RGB = OVRPlugin.ColorSpace.Adobe_RGB
}
enum
ProcessorPerformanceLevel {
ProcessorPerformanceLevel.PowerSavings = OVRPlugin.ProcessorPerformanceLevel.PowerSavings, ProcessorPerformanceLevel.SustainedLow = OVRPlugin.ProcessorPerformanceLevel.SustainedLow, ProcessorPerformanceLevel.SustainedHigh = OVRPlugin.ProcessorPerformanceLevel.SustainedHigh, ProcessorPerformanceLevel.Boost = OVRPlugin.ProcessorPerformanceLevel.Boost
}
enum

Properties

static OVRManager
Gets the singleton instance.
static OVRDisplay
display[Get]
Gets a reference to the active display.
static OVRTracker
tracker[Get]
Gets a reference to the active sensor.
Gets a reference to the active boundary system.
Gets a reference to the runtime settings.
static OVRProfile
profile[Get]
Gets the current profile, which contains information about the user's settings and body dimensions.
static bool
If true, a head-mounted display is connected and present.
static string
Gets the audio output device identifier.
static string
Gets the audio input device identifier.
static bool
If true, the app has VR Focus.
static bool
If true, the app has Input Focus.
bool
If true, chromatic de-aberration will be applied, improving the image at the cost of texture bandwidth.
bool
OVRPlugin.LayerSharpenType
The sharpen type for the eye buffer.
OVRManager.ColorSpace
The target color gamut the HMD will perform a color space transformation to.
OVRManager.ColorSpace
The native color gamut of the target HMD.
Vector3
Vector3
XrApi
xrApi[Get]
The native XR API being used.
UInt64
The value of current XrInstance when using OpenXR.
UInt64
The value of current XrSession when using OpenXR.
int
The number of expected display frames per rendered frame.
static float
Gets the current battery level (Deprecated).
static float
Gets the current battery temperature (Deprecated).
static int
Gets the current battery status (Deprecated).
static float
Gets the current volume level (Deprecated).
static ProcessorPerformanceLevel
Gets or sets the current suggested CPU performance level, which can be overriden by the Power Management system.
static ProcessorPerformanceLevel
Gets or sets the current suggested GPU performance level, which can be overriden by the Power Management system.
static int
Gets or sets the current CPU performance level (0-2).
static int
Gets or sets the current GPU performance level (0-2).
static bool
If true, the CPU and GPU are currently throttled to save power and/or reduce the temperature.
static EyeTextureFormat
Gets or sets the eye texture format.
static bool
Gets if eye tracked foveated rendering feature is supported on this device.
static bool
Gets or sets if eye tracked foveated rendering is enabled or not.
static FoveatedRenderingLevel
Gets or sets the tiled-based multi-resolution level This feature is only supported on QCOMM-based Android devices.
static bool
static FixedFoveatedRenderingLevel
static bool
static bool
Let the system decide the best foveation level adaptively (Off .
static bool
static TiledMultiResLevel
static bool
Gets if the GPU Utility is supported This feature is only supported on QCOMM-based Android devices.
static float
Gets the GPU Utilised Level (0.0 - 1.0) This feature is only supported on QCOMM-based Android devices.
static SystemHeadsetType
Get the system headset type.
OVRManager.TrackingOrigin
Defines the current tracking origin type.
bool
bool
True if the current platform supports virtual reality.
bool
True if the user is currently wearing the display.
static System.Version
static System.Version
static System.Version

Object Data

static OVRProfile
static Vector3
static Vector3
static Vector3
static Vector3
static bool
static Transform
static DepthTextureMode

Object Data

IEnumerable< Camera >

Events

static Action
Occurs when an HMD attached.
static Action
HMDLost ( )
Occurs when an HMD detached.
static Action
Occurs when an HMD is put on the user's head.
static Action
Occurs when an HMD is taken off the user's head.
static Action
Occurs when VR Focus is acquired.
static Action
Occurs when VR Focus is lost.
static Action
Occurs when Input Focus is acquired.
static Action
Occurs when Input Focus is lost.
static Action
Occurs when the active Audio Out device has changed and a restart is needed.
static Action
Occurs when the active Audio In device has changed and a restart is needed.
static Action
Occurs when the sensor gained tracking.
static Action
Occurs when the sensor lost tracking.
static Action< float, float >
Occurs when the display refresh rate changes @params (float fromRefreshRate, float toRefreshRate)
static Action< UInt64, bool, OVRSpace, Guid >
Occurs when attempting to create a spatial anchor space @params (UInt64 requestId, bool result, OVRSpace space, Guid uuid)
static Action< UInt64, bool, OVRSpace, Guid, OVRPlugin.SpaceComponentType, bool >
Occurs when attempting to enable a component on a space @params (UInt64 requestId, bool result, OVRSpace space, Guid uuid, OVRPlugin.SpaceComponentType componentType, bool enabled)
static Action< UInt64 >
Occurs when one or more spaces are found during query @params (UInt64 requestId)
static Action< UInt64, bool >
Occurs when querying for a space completes @params (UInt64 requestId, bool result)
static Action< UInt64, OVRSpace, bool, Guid >
Occurs when saving a space @params (UInt64 requestId, OVRSpace space, bool result, Guid uuid)
static Action< UInt64, bool, Guid, OVRPlugin.SpaceStorageLocation >
Occurs when erasing a space @params (UInt64 requestId, bool result, Guid uuid, SpaceStorageLocation location)
static Action< UInt64, OVRSpatialAnchor.OperationResult >
Occurs when sharing spatial entities @params (UInt64 requestId, OVRSpatialAnchor.OperationResult result)
static Action< UInt64, OVRSpatialAnchor.OperationResult >
Occurs when saving space list @params (UInt64 requestId, OVRSpatialAnchor.OperationResult result)
static Action< UInt64, bool >
Occurs when a scene capture request completes @params (UInt64 requestId, bool result)
static Action< int >
Occurs when a passthrough layer has been rendered and presented on the HMD screen for the first time after being restarted.
static Action
Occurs when Health & Safety Warning is dismissed.

Data Fields

bool
If true, Unity will use the optimal antialiasing level for quality/performance on the current hardware.
bool
float
float
float
Min RenderScale the app can reach under adaptive resolution mode ( enableAdaptiveResolution = true );.
float
Max RenderScale the app can reach under adaptive resolution mode ( enableAdaptiveResolution = true );.
int
The TCP listening port of Oculus Profiler Service, which will be activated in Debug/Developerment builds When the app is running on editor or device, open "Tools/Oculus/Oculus Profiler Panel" to view the realtime system metrics.
bool
Specify if simultaneous hands and controllers should be enabled.
bool
Specify if Insight Passthrough should be enabled.
bool
If true, head tracking will affect the position of each OVRCameraRig's cameras.
bool
If true, head tracking will affect the rotation of each OVRCameraRig's cameras.
bool
If true, the distance between the user's eyes will affect the position of each OVRCameraRig's cameras.
bool
If true, each scene load will cause the head pose to reset.
bool
If true, the Reset View in the universal menu will cause the pose to be reset in PC VR.
bool
If true, a lower-latency update will occur right before rendering.
OVRManager.ControllerDrivenHandPosesType
bool
bool

Static Fields

static string
static string
static XRDevice
static string
static bool
static Action< bool >

Static Public Member Functions

static bool
Adaptive Resolution is based on Unity engine's renderViewportScale/eyeTextureResolutionScale feature But renderViewportScale was broken in an array of Unity engines, this function help to filter out those broken engines.
static void
SetColorScaleAndOffset
( Vector4 colorScale,
Vector4 colorOffset,
bool applyToAllLayers )
Sets the Color Scale and Offset which is commonly used for effects like fade-to-black.
static void
SetOpenVRLocalPose
( Vector3 leftPos,
Vector3 rightPos,
Quaternion leftRot,
Quaternion rightRot )
Specifies OpenVR pose local to tracking space.
static OVRPose
Specifies the pose offset required to make an OpenVR controller's reported pose match the virtual pose.
static void
SetSpaceWarp
( bool enabled )
Enables or disables space warp.
static bool
static bool
static Camera
static void
static bool
Checks whether simultaneous hands and controllers is currently supported by the system.
static bool
Checks whether Passthrough is supported by the system.
Returns information about Passthrough capabilities provided by the system.
static bool
Checks whether Passthrough is initialized.
static bool
Checks whether Passthrough has failed initialization.
static bool
Checks whether Passthrough is in the process of initialization.
static bool
Get a system recommendation on whether Passthrough should be active.
static bool
static FoveatedRenderingLevel
static void
SetFoveatedRenderingLevel
( FoveatedRenderingLevel level )
static bool
static void
static bool
static bool
static void
static void
SetSpaceWarp_Internal
( bool enabled )
static void
SetAppSpacePosition
( float x,
float y,
float z )
static void
SetAppSpaceRotation
( float x,
float y,
float z,
float w )
static bool
SetColorScaleAndOffset_Internal
( Vector4 colorScale,
Vector4 colorOffset,
bool applyToAllLayers )

Object Data

static void
OnPermissionGranted
( string permissionId )

Public Member Functions

void
void
void
Leaves the application/game and returns to the launcher/dashboard.

Details

Member Enumerations

enum OVRManager.XrApi
Enumerator
Unknown
= OVRPlugin.XrApi.Unknown
CAPI
= OVRPlugin.XrApi.CAPI
VRAPI
= OVRPlugin.XrApi.VRAPI
OpenXR
= OVRPlugin.XrApi.OpenXR
enum OVRManager.TrackingOrigin
Enumerator
EyeLevel
= OVRPlugin.TrackingOrigin.EyeLevel
FloorLevel
= OVRPlugin.TrackingOrigin.FloorLevel
Stage
= OVRPlugin.TrackingOrigin.Stage
enum OVRManager.EyeTextureFormat
Enumerator
Default
= OVRPlugin.EyeTextureFormat.Default
R16G16B16A16_FP
= OVRPlugin.EyeTextureFormat.R16G16B16A16_FP
R11G11B10_FP
= OVRPlugin.EyeTextureFormat.R11G11B10_FP
enum OVRManager.FoveatedRenderingLevel
Enumerator
Off
= OVRPlugin.FoveatedRenderingLevel.Off
Low
= OVRPlugin.FoveatedRenderingLevel.Low
Medium
= OVRPlugin.FoveatedRenderingLevel.Medium
High
= OVRPlugin.FoveatedRenderingLevel.High
HighTop
= OVRPlugin.FoveatedRenderingLevel.HighTop
enum OVRManager.FixedFoveatedRenderingLevel
Enumerator
Off
= OVRPlugin.FixedFoveatedRenderingLevel.Off
Low
= OVRPlugin.FixedFoveatedRenderingLevel.Low
Medium
= OVRPlugin.FixedFoveatedRenderingLevel.Medium
High
= OVRPlugin.FixedFoveatedRenderingLevel.High
HighTop
= OVRPlugin.FixedFoveatedRenderingLevel.HighTop
enum OVRManager.TiledMultiResLevel
Enumerator
Off
= OVRPlugin.TiledMultiResLevel.Off
LMSLow
= OVRPlugin.TiledMultiResLevel.LMSLow
LMSMedium
= OVRPlugin.TiledMultiResLevel.LMSMedium
LMSHigh
= OVRPlugin.TiledMultiResLevel.LMSHigh
LMSHighTop
= OVRPlugin.TiledMultiResLevel.LMSHighTop
enum OVRManager.SystemHeadsetType
Enumerator
None
= OVRPlugin.SystemHeadset.None
Oculus_Quest
= OVRPlugin.SystemHeadset.Oculus_Quest
Oculus_Quest_2
= OVRPlugin.SystemHeadset.Oculus_Quest_2
Meta_Quest_Pro
= OVRPlugin.SystemHeadset.Meta_Quest_Pro
Meta_Quest_3
= OVRPlugin.SystemHeadset.Meta_Quest_3
Placeholder_12
= OVRPlugin.SystemHeadset.Placeholder_12
Placeholder_13
= OVRPlugin.SystemHeadset.Placeholder_13
Placeholder_14
= OVRPlugin.SystemHeadset.Placeholder_14
Rift_DK1
= OVRPlugin.SystemHeadset.Rift_DK1
Rift_DK2
= OVRPlugin.SystemHeadset.Rift_DK2
Rift_CV1
= OVRPlugin.SystemHeadset.Rift_CV1
Rift_CB
= OVRPlugin.SystemHeadset.Rift_CB
Rift_S
= OVRPlugin.SystemHeadset.Rift_S
Oculus_Link_Quest
= OVRPlugin.SystemHeadset.Oculus_Link_Quest
Oculus_Link_Quest_2
= OVRPlugin.SystemHeadset.Oculus_Link_Quest_2
Meta_Link_Quest_Pro
= OVRPlugin.SystemHeadset.Meta_Link_Quest_Pro
Meta_Link_Quest_3
= OVRPlugin.SystemHeadset.Meta_Link_Quest_3
PC_Placeholder_4105
= OVRPlugin.SystemHeadset.PC_Placeholder_4105
PC_Placeholder_4106
= OVRPlugin.SystemHeadset.PC_Placeholder_4106
PC_Placeholder_4107
= OVRPlugin.SystemHeadset.PC_Placeholder_4107
enum OVRManager.XRDevice
Enumerator
Unknown
= 0
Oculus
= 1
OpenVR
= 2
enum OVRManager.ColorSpace
Enumerator
Unknown
= OVRPlugin.ColorSpace.Unknown
Unmanaged
= OVRPlugin.ColorSpace.Unmanaged
Rec_2020
= OVRPlugin.ColorSpace.Rec_2020
Rec_709
= OVRPlugin.ColorSpace.Rec_709
Rift_CV1
= OVRPlugin.ColorSpace.Rift_CV1
Rift_S
= OVRPlugin.ColorSpace.Rift_S
Quest
= OVRPlugin.ColorSpace.Quest
P3
= OVRPlugin.ColorSpace.P3
Adobe_RGB
= OVRPlugin.ColorSpace.Adobe_RGB
enum OVRManager.ProcessorPerformanceLevel
Enumerator
PowerSavings
= OVRPlugin.ProcessorPerformanceLevel.PowerSavings
SustainedLow
= OVRPlugin.ProcessorPerformanceLevel.SustainedLow
SustainedHigh
= OVRPlugin.ProcessorPerformanceLevel.SustainedHigh
Boost
= OVRPlugin.ProcessorPerformanceLevel.Boost
enum OVRManager.ControllerDrivenHandPosesType
Enumerator
None
ConformingToController
Natural

Properties

OVRManager OVRManager.instance
Gets the singleton instance.
OVRDisplay OVRManager.display
Gets a reference to the active display.
OVRTracker OVRManager.tracker
Gets a reference to the active sensor.
OVRBoundary OVRManager.boundary
Gets a reference to the active boundary system.
OVRRuntimeSettings OVRManager.runtimeSettings
Gets a reference to the runtime settings.
OVRProfile OVRManager.profile
Gets the current profile, which contains information about the user's settings and body dimensions.
bool OVRManager.isHmdPresent
If true, a head-mounted display is connected and present.
string OVRManager.audioOutId
Gets the audio output device identifier.
On Windows, this is a string containing the GUID of the IMMDevice for the Windows audio endpoint to use.
string OVRManager.audioInId
Gets the audio input device identifier.
On Windows, this is a string containing the GUID of the IMMDevice for the Windows audio endpoint to use.
bool OVRManager.hasVrFocus
If true, the app has VR Focus.
bool OVRManager.hasInputFocus
If true, the app has Input Focus.
bool OVRManager.chromatic
If true, chromatic de-aberration will be applied, improving the image at the cost of texture bandwidth.
bool OVRManager.monoscopic
No description available.
OVRPlugin.LayerSharpenType OVRManager.sharpenType
The sharpen type for the eye buffer.
OVRManager.ColorSpace OVRManager.colorGamut
The target color gamut the HMD will perform a color space transformation to.
OVRManager.ColorSpace OVRManager.nativeColorGamut
The native color gamut of the target HMD.
Vector3 OVRManager.headPoseRelativeOffsetRotation
No description available.
Vector3 OVRManager.headPoseRelativeOffsetTranslation
No description available.
XrApi OVRManager.xrApi
The native XR API being used.
UInt64 OVRManager.xrInstance
The value of current XrInstance when using OpenXR.
UInt64 OVRManager.xrSession
The value of current XrSession when using OpenXR.
int OVRManager.vsyncCount
The number of expected display frames per rendered frame.
float OVRManager.batteryLevel
Gets the current battery level (Deprecated).
Returns
battery level in the range [0.0,1.0]
Parameters
batteryLevel
Battery level.
float OVRManager.batteryTemperature
Gets the current battery temperature (Deprecated).
Returns
battery temperature in Celsius
Parameters
batteryTemperature
Battery temperature.
int OVRManager.batteryStatus
Gets the current battery status (Deprecated).
Returns
battery status
Parameters
batteryStatus
Battery status.
float OVRManager.volumeLevel
Gets the current volume level (Deprecated).
Returns
volume level in the range [0,1].
ProcessorPerformanceLevel OVRManager.suggestedCpuPerfLevel
Gets or sets the current suggested CPU performance level, which can be overriden by the Power Management system.
ProcessorPerformanceLevel OVRManager.suggestedGpuPerfLevel
Gets or sets the current suggested GPU performance level, which can be overriden by the Power Management system.
int OVRManager.cpuLevel
Gets or sets the current CPU performance level (0-2).
Lower performance levels save more power. (Deprecated)
int OVRManager.gpuLevel
Gets or sets the current GPU performance level (0-2).
Lower performance levels save more power. (Deprecated)
bool OVRManager.isPowerSavingActive
If true, the CPU and GPU are currently throttled to save power and/or reduce the temperature.
EyeTextureFormat OVRManager.eyeTextureFormat
Gets or sets the eye texture format.
bool OVRManager.eyeTrackedFoveatedRenderingSupported
Gets if eye tracked foveated rendering feature is supported on this device.
bool OVRManager.eyeTrackedFoveatedRenderingEnabled
Gets or sets if eye tracked foveated rendering is enabled or not.
FoveatedRenderingLevel OVRManager.foveatedRenderingLevel
Gets or sets the tiled-based multi-resolution level This feature is only supported on QCOMM-based Android devices.
bool OVRManager.fixedFoveatedRenderingSupported
No description available.
FixedFoveatedRenderingLevel OVRManager.fixedFoveatedRenderingLevel
No description available.
bool OVRManager.useDynamicFoveatedRendering
No description available.
bool OVRManager.useDynamicFixedFoveatedRendering
Let the system decide the best foveation level adaptively (Off .
. fixedFoveatedRenderingLevel) This feature is only supported on QCOMM-based Android devices
bool OVRManager.tiledMultiResSupported
No description available.
TiledMultiResLevel OVRManager.tiledMultiResLevel
No description available.
bool OVRManager.gpuUtilSupported
Gets if the GPU Utility is supported This feature is only supported on QCOMM-based Android devices.
float OVRManager.gpuUtilLevel
Gets the GPU Utilised Level (0.0 - 1.0) This feature is only supported on QCOMM-based Android devices.
SystemHeadsetType OVRManager.systemHeadsetType
Get the system headset type.
OVRManager.TrackingOrigin OVRManager.trackingOriginType
Defines the current tracking origin type.
bool OVRManager.IsSimultaneousHandsAndControllersSupported
No description available.
bool OVRManager.isSupportedPlatform
True if the current platform supports virtual reality.
bool OVRManager.isUserPresent
True if the user is currently wearing the display.
System.Version OVRManager.utilitiesVersion
No description available.
System.Version OVRManager.pluginVersion
No description available.
System.Version OVRManager.sdkVersion
No description available.

Object Data

OVRProfile OVRManager._profile
No description available.
Vector3 OVRManager.OpenVRTouchRotationOffsetEulerLeft
No description available.
Vector3 OVRManager.OpenVRTouchRotationOffsetEulerRight
No description available.
Vector3 OVRManager.OpenVRTouchPositionOffsetLeft
No description available.
Vector3 OVRManager.OpenVRTouchPositionOffsetRight
No description available.
bool OVRManager.m_SpaceWarpEnabled
No description available.
Transform OVRManager.m_AppSpaceTransform
No description available.
DepthTextureMode OVRManager.m_CachedDepthTextureMode
No description available.

Object Data

IEnumerable<Camera> OVRManager.disabledCameras
No description available.

Events

Action OVRManager.HMDAcquired ( )
Occurs when an HMD attached.
Action OVRManager.HMDLost ( )
Occurs when an HMD detached.
Action OVRManager.HMDMounted ( )
Occurs when an HMD is put on the user's head.
Action OVRManager.HMDUnmounted ( )
Occurs when an HMD is taken off the user's head.
Action OVRManager.VrFocusAcquired ( )
Occurs when VR Focus is acquired.
Action OVRManager.VrFocusLost ( )
Occurs when VR Focus is lost.
Action OVRManager.InputFocusAcquired ( )
Occurs when Input Focus is acquired.
Action OVRManager.InputFocusLost ( )
Occurs when Input Focus is lost.
Action OVRManager.AudioOutChanged ( )
Occurs when the active Audio Out device has changed and a restart is needed.
Action OVRManager.AudioInChanged ( )
Occurs when the active Audio In device has changed and a restart is needed.
Action OVRManager.TrackingAcquired ( )
Occurs when the sensor gained tracking.
Action OVRManager.TrackingLost ( )
Occurs when the sensor lost tracking.
Action<float, float> OVRManager.DisplayRefreshRateChanged ( )
Occurs when the display refresh rate changes @params (float fromRefreshRate, float toRefreshRate)
Action<UInt64, bool, OVRSpace, Guid> OVRManager.SpatialAnchorCreateComplete ( )
Occurs when attempting to create a spatial anchor space @params (UInt64 requestId, bool result, OVRSpace space, Guid uuid)
Action<UInt64, bool, OVRSpace, Guid, OVRPlugin.SpaceComponentType, bool> OVRManager.SpaceSetComponentStatusComplete ( )
Occurs when attempting to enable a component on a space @params (UInt64 requestId, bool result, OVRSpace space, Guid uuid, OVRPlugin.SpaceComponentType componentType, bool enabled)
Action<UInt64> OVRManager.SpaceQueryResults ( )
Occurs when one or more spaces are found during query @params (UInt64 requestId)
Action<UInt64, bool> OVRManager.SpaceQueryComplete ( )
Occurs when querying for a space completes @params (UInt64 requestId, bool result)
Action<UInt64, OVRSpace, bool, Guid> OVRManager.SpaceSaveComplete ( )
Occurs when saving a space @params (UInt64 requestId, OVRSpace space, bool result, Guid uuid)
Action<UInt64, bool, Guid, OVRPlugin.SpaceStorageLocation> OVRManager.SpaceEraseComplete ( )
Occurs when erasing a space @params (UInt64 requestId, bool result, Guid uuid, SpaceStorageLocation location)
Action<UInt64, OVRSpatialAnchor.OperationResult> OVRManager.ShareSpacesComplete ( )
Occurs when sharing spatial entities @params (UInt64 requestId, OVRSpatialAnchor.OperationResult result)
Action<UInt64, OVRSpatialAnchor.OperationResult> OVRManager.SpaceListSaveComplete ( )
Occurs when saving space list @params (UInt64 requestId, OVRSpatialAnchor.OperationResult result)
Action<UInt64, bool> OVRManager.SceneCaptureComplete ( )
Occurs when a scene capture request completes @params (UInt64 requestId, bool result)
Action<int> OVRManager.PassthroughLayerResumed ( )
Occurs when a passthrough layer has been rendered and presented on the HMD screen for the first time after being restarted.
@params (int layerId)
Action OVRManager.HSWDismissed ( )
Occurs when Health & Safety Warning is dismissed.

Fields

bool OVRManager.useRecommendedMSAALevel
If true, Unity will use the optimal antialiasing level for quality/performance on the current hardware.
bool OVRManager.enableDynamicResolution
No description available.
float OVRManager.minDynamicResolutionScale
No description available.
float OVRManager.maxDynamicResolutionScale
No description available.
float OVRManager.minRenderScale
Min RenderScale the app can reach under adaptive resolution mode ( enableAdaptiveResolution = true );.
float OVRManager.maxRenderScale
Max RenderScale the app can reach under adaptive resolution mode ( enableAdaptiveResolution = true );.
int OVRManager.profilerTcpPort
The TCP listening port of Oculus Profiler Service, which will be activated in Debug/Developerment builds When the app is running on editor or device, open "Tools/Oculus/Oculus Profiler Panel" to view the realtime system metrics.
bool OVRManager.launchSimultaneousHandsControllersOnStartup
Specify if simultaneous hands and controllers should be enabled.
bool OVRManager.isInsightPassthroughEnabled
Specify if Insight Passthrough should be enabled.
Passthrough layers can only be used if passthrough is enabled.
bool OVRManager.usePositionTracking
If true, head tracking will affect the position of each OVRCameraRig's cameras.
bool OVRManager.useRotationTracking
If true, head tracking will affect the rotation of each OVRCameraRig's cameras.
bool OVRManager.useIPDInPositionTracking
If true, the distance between the user's eyes will affect the position of each OVRCameraRig's cameras.
bool OVRManager.resetTrackerOnLoad
If true, each scene load will cause the head pose to reset.
This function only works on Rift.
bool OVRManager.AllowRecenter
If true, the Reset View in the universal menu will cause the pose to be reset in PC VR.
This should generally be enabled for applications with a stationary position in the virtual world and will allow the View Reset command to place the person back to a predefined location (such as a cockpit seat). Set this to false if you have a locomotion system because resetting the view would effectively teleport the player to potentially invalid locations.
bool OVRManager.LateControllerUpdate
If true, a lower-latency update will occur right before rendering.
If false, the only controller pose update will occur at the start of simulation for a given frame. Selecting this option lowers rendered latency for controllers and is often a net positive; however, it also creates a slight disconnect between rendered and simulated controller poses. Visit online Oculus documentation to learn more.
OVRManager.ControllerDrivenHandPosesType OVRManager.controllerDrivenHandPosesType
No description available.
bool OVRManager.SimultaneousHandsAndControllersEnabled
No description available.
bool OVRManager.wideMotionModeHandPosesEnabled
No description available.

Public Statics

string OVRManager.OCULUS_UNITY_NAME_STR
No description available.
string OVRManager.OPENVR_UNITY_NAME_STR
No description available.
XRDevice OVRManager.loadedXRDevice
No description available.
string OVRManager.UnityAlphaOrBetaVersionWarningMessage
No description available.
bool OVRManager.OVRManagerinitialized
No description available.
Action<bool> OVRManager.OnPassthroughInitializedStateChange
No description available.

Static Member Functions

static bool OVRManager.IsAdaptiveResSupportedByEngine ( )
Adaptive Resolution is based on Unity engine's renderViewportScale/eyeTextureResolutionScale feature But renderViewportScale was broken in an array of Unity engines, this function help to filter out those broken engines.
static void OVRManager.SetColorScaleAndOffset
( Vector4 colorScale,
Vector4 colorOffset,
bool applyToAllLayers )
Sets the Color Scale and Offset which is commonly used for effects like fade-to-black.
In our compositor, once a given frame is rendered, warped, and ready to be displayed, we then multiply each pixel by colorScale and add it to colorOffset, whereby newPixel = oldPixel * colorScale + colorOffset. Note that for mobile devices (Quest, etc.), colorOffset is only supported with OpenXR, so colorScale is all that can be used. A colorScale of (1, 1, 1, 1) and colorOffset of (0, 0, 0, 0) will lead to an identity multiplication and have no effect.
static void OVRManager.SetOpenVRLocalPose
( Vector3 leftPos,
Vector3 rightPos,
Quaternion leftRot,
Quaternion rightRot )
Specifies OpenVR pose local to tracking space.
static OVRPose OVRManager.GetOpenVRControllerOffset
( Node hand )
Specifies the pose offset required to make an OpenVR controller's reported pose match the virtual pose.
Currently we only specify this offset for Oculus Touch on OpenVR.
static void OVRManager.SetSpaceWarp
( bool enabled )
Enables or disables space warp.
static bool OVRManager.GetSpaceWarp ( )
No description available.
static bool OVRManager.IsUnityAlphaOrBetaVersion ( )
No description available.
static Camera OVRManager.FindMainCamera ( )
No description available.
static void OVRManager.PlatformUIConfirmQuit ( )
No description available.
static bool OVRManager.IsMultimodalHandsControllersSupported ( )
Checks whether simultaneous hands and controllers is currently supported by the system.
This method should only be called when the XR Plug-in is initialized.
static bool OVRManager.IsInsightPassthroughSupported ( )
Checks whether Passthrough is supported by the system.
This method should only be called when the XR Plug-in is initialized.
static PassthroughCapabilities OVRManager.GetPassthroughCapabilities ( )
Returns information about Passthrough capabilities provided by the system.
This method should only be called when the XR Plug-in is initialized.
static bool OVRManager.IsInsightPassthroughInitialized ( )
Checks whether Passthrough is initialized.
Returns
Boolean value to indicate the current state of passthrough. If the value returned is true, Passthrough is initialized.
static bool OVRManager.HasInsightPassthroughInitFailed ( )
Checks whether Passthrough has failed initialization.
Returns
Boolean value to indicate the passthrough initialization failed status. If the value returned is true, Passthrough has failed the initialization.
static bool OVRManager.IsInsightPassthroughInitPending ( )
Checks whether Passthrough is in the process of initialization.
Returns
Boolean value to indicate the current state of passthrough. If the value returned is true, Passthrough is initializing.
static bool OVRManager.IsPassthroughRecommended ( )
Get a system recommendation on whether Passthrough should be active.
When set, it is recommended for apps which optionally support an MR experience with Passthrough to default to that mode. Currently, this is determined based on whether the user has Passthrough active in the home environment.
Returns
Flag indicating whether Passthrough is recommended.
static bool OVRManager.GetFixedFoveatedRenderingSupported ( )
No description available.
static FoveatedRenderingLevel OVRManager.GetFoveatedRenderingLevel ( )
No description available.
static void OVRManager.SetFoveatedRenderingLevel
( FoveatedRenderingLevel level )
No description available.
static bool OVRManager.GetDynamicFoveatedRenderingEnabled ( )
No description available.
static void OVRManager.SetDynamicFoveatedRenderingEnabled
( bool enabled )
No description available.
static bool OVRManager.GetEyeTrackedFoveatedRenderingSupported ( )
No description available.
static bool OVRManager.GetEyeTrackedFoveatedRenderingEnabled ( )
No description available.
static void OVRManager.SetEyeTrackedFoveatedRenderingEnabled
( bool enabled )
No description available.
static void OVRManager.SetSpaceWarp_Internal
( bool enabled )
No description available.
static void OVRManager.SetAppSpacePosition
( float x,
float y,
float z )
No description available.
static void OVRManager.SetAppSpaceRotation
( float x,
float y,
float z,
float w )
No description available.
static bool OVRManager.SetColorScaleAndOffset_Internal
( Vector4 colorScale,
Vector4 colorOffset,
bool applyToAllLayers )
No description available.

Object Data

static void OVRManager.OnPermissionGranted
( string permissionId )
No description available.

Member Functions

void OVRManager.RegisterEventListener
( EventListener listener )
No description available.
void OVRManager.DeregisterEventListener
( EventListener listener )
No description available.
void OVRManager.ReturnToLauncher ( )
Leaves the application/game and returns to the launcher/dashboard.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon