Legacy Documentation: Version 2018.2 (Go to current version)
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

InputTrackingA collection of methods and properties for interacting with the XR tracking system.
SubsystemAn Subsystem is initialized from an 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 an 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.
SubsystemDescriptor<T0>Information 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.
XRInputSubsystemXRInputSubsystem Instance is used to enable and disable the inputs coming from a specific plugin.
XRInputSubsystemDescriptorInformation about an Input subsystem.
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.

Structs

BoundedPlaneStructure describing a bounded plane representing a real-world surface.
FrameReceivedEventArgsStructure containing data passed during Frame Received Event.
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

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 tracked XR nodes which can be updated by XR input.

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