Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


XRInputSubsystem

XRInputSubsystem Instance is used to enable and disable the inputs coming from a specific plugin.
Read time 1 minuteLast updated 4 days ago

Definition

public class XRInputSubsystem : IntegratedSubsystem<XRInputSubsystemDescriptor>, ISubsystem

Remarks

Starting up an XRInputSubsystem Instance will cause that plugin to start feeding input device data to the following InputTracking systems: InputTracking.GetLocalPosition and InputTracking.GetLocalRotation. Calling the Stop or Shutdown functions will disable polling any input device data for that plugin.

Methods

Method

Description

GetSupportedTrackingOriginModesGets all TrackingOriginModeFlags that this subsystem supports.
GetTrackingOriginModeGets the Tracking Origin Mode.
TryGetBoundaryPointsGets the list of 3D position values that represents the SDK-set boundary.
TryGetInputDevicesGets a list of all connected InputDevices reported by this XRInputSubsystem.
TryRecenterCenters the tracking features on all InputDevices to the current position and orientation of the head-mounted device.
TrySetTrackingOriginModeAttempts to set the TrackingOriginModeFlags of the subsystem.

Events

Member

Description

boundaryChangedAn event that takes the delegate instance that the XRInputSubsystem calls when it changes its tracking boundary.
trackingOriginUpdatedAn event that takes the delegate instance that the XRInputSubsystem calls when it changes the origin it reports devices at.

Inheritance