Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#

UnityEngine.XRModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The XR module contains the VR and AR related platform support functionality.

Classes

CommonUsagesDefines static variables that are used to retrieve input features from XR.InputDevice.TryGetFeatureValue.
InputDevicesAn interface for accessing devices in the XR input subsytem.
InputTrackingA collection of methods and properties for interacting with the XR tracking system.
IntegratedSubsystemAn IntegratedSubsystem is initialized from an IntegratedSubsystemDescriptor for a given Subsystem (Example, Input, Environment, Display, etc.) and provides an interface to interact with that given IntegratedSubsystem until it is Destroyed. After an IntegratedSubsystem is created it can be Started or Stopped to turn on and off functionality (and preserve performance). The base type for IntegratedSubsystem only exposes this functionality; this class is designed to be a base class for derived classes that expose more functionality specific to a given IntegratedSubsystem. Note: initializing a second IntegratedSubsystem from the same IntegratedSubsystemDescriptor will return a reference to the existing IntegratedSubsystem as only one IntegratedSubsystem is currently allowed for a single IntegratedSubsystem provider.
IntegratedSubsystemDescriptorInformation about a subsystem that can be queried before creating a subsystem instance.
SubsystemA Subsystem is initialized from a SubsystemDescriptor for a given Subsystem (Example, Input, Environment, Display, etc.) and provides an interface to interact with that given Subsystem until it is Destroyed. After a Subsystem is created it can be Started or Stopped to turn on and off functionality (and preserve performance). The base type for Subsystem only exposes this functionality; this class is designed to be a base class for derived classes that expose more functionality specific to a given Subsystem. Note: initializing a second Subsystem from the same SubsystemDescriptor will return a reference to the existing Subsystem as only one Subsystem is currently allowed for a single Subsystem provider.
SubsystemDescriptorInformation about a subsystem that can be queried before creating a subsystem instance.
SubsystemManagerGives access to subsystems which provide additional functionality through plugins.
XRCameraSubsystemProvides access to a device's camera.
XRCameraSubsystemDescriptorClass providing information about XRCameraSubsystem registration.
XRDepthSubsystemProvides access to depth data of the physical environment, such as a point cloud.
XRDepthSubsystemDescriptorClass providing information about XRDepthSubsystem registration.
XRDisplaySubsystemAn XRDisplaySubsystem controls rendering to a head tracked display.
XRDisplaySubsystemDescriptorClass providing information about XRDisplaySubsystem registration.
XRInputSubsystemXRInputSubsystem Instance is used to enable and disable the inputs coming from a specific plugin.
XRInputSubsystemDescriptorInformation about an Input subsystem.
XRMeshSubsystemAllows external systems to provide dynamic meshes to Unity.
XRMeshSubsystemDescriptorInformation about an XRMeshSubsystem.
XRPlaneSubsystemProvides methods, events, and properties that provides information about planes detected in the environment.
XRPlaneSubsystemDescriptorClass providing information about XRPlaneSubsystem registration.
XRRaycastSubsystemProvides methods and properties that allow for querying portions of the physical environment that are near a provided specified ray. These trackables include planes and depth data.
XRRaycastSubsystemDescriptorClass providing information about XRRaycastSubsystem registration.
XRReferencePointSubsystemProvides methods and properties that allow for querying, creating, and removing of reference points. These reference points are cues to the XRSessionSubsystem that indicate areas of interest in the environment which helps assure that tracking of these points remains accurate.
XRReferencePointSubsystemDescriptorClass providing information about XRReferencePointSubsystem registration.
XRSessionSubsystemA collection of methods and properties used to interact with and configure an XR session.
XRSessionSubsystemDescriptorClass providing information about XRSessionSubsystem registration.
XRStatsProvides timing and other statistics from XR subsystems.

Structs

BoneA tracked bone on the device at an XRNode in the XR input subsystem.
BoundedPlaneStructure describing a bounded plane representing a real-world surface.
EyesContains eye tracking data from the device at an XRNode in the XR input subsystem.
FrameReceivedEventArgsStructure containing data passed during Frame Received Event.
HandA tracked hand on the device at an XRNode in the XR input subsystem.
HapticCapabilitiesDescribes the haptic capabilities of the device at an XRNode in the XR input subsystem.
InputDeviceDefines an input device in the XR input subsystem.
InputFeatureUsageDefines a generic usage that maps to an input feature on a device. Use the As method to turn into a generic usage.
InputFeatureUsage<T0>Defines a generic usage that maps to an input feature on a device.
MeshGenerationResultContains event information related to a generated mesh.
MeshInfoContains state information related to a tracked mesh.
PlaneAddedEventArgsContains data supplied to a XRPlaneSubsystem.PlaneAdded event.
PlaneRemovedEventArgsContains data supplied to a XRPlaneSubsystem.PlaneRemoved event.
PlaneUpdatedEventArgsContains data supplied to a XRPlaneSubsystem.PlaneUpdated event.
PointCloudUpdatedEventArgsContains data supplied to a XRDepth.PointCloudUpdated event.
ReferencePointDescribes the transform data of a real-world point.
ReferencePointUpdatedEventArgsData to be passed to the user when the device corrects its understanding of the world enough that the ReferencePoint's position or rotation has changed.
SessionTrackingStateChangedEventArgsStructure defining Tracking State Changed event arguments passed when tracking state changes.
TrackableIdA session-unique identifier for trackables in the environment, e.g., planes and feature points.
XRNodeStateDescribes the state of a node tracked by a XR system. .
XRRaycastHitStructure describing the result of a XRRaycastSubsystem.Raycast hit.

Enumerations

HandFingerEnumeration describing the AR rendering mode used with Hand.
InputDeviceRoleEnumeration describing the role of a InputDevice in providing input.
InputTrackingStateRepresents the values being tracked for this device.
MeshChangeStateThe state of a tracked mesh since the last query.
MeshGenerationStatusThe status of a XRMeshSubsystem.GenerateMeshAsync.
MeshVertexAttributesA set of vertex attributes.
PlaneAlignmentDescribes current plane alignment in mixed reality space.
TrackableTypeA trackable is feature in the physical environment that a device is able to track, such as a plane.
TrackingStateCurrent tracking state of the device.
XRNodeEnumeration of XR nodes which can be updated by XR input or sent haptic data.

Did you find this page useful? Please give it a rating: