Class XRController
The base type for all XR handed controllers.
Inherited Members
Namespace: UnityEngine.InputSystem.XR
Syntax
[Preserve]
public class XRController : TrackedDevice
Properties
leftHand
A quick accessor for the currently active left handed device.
Declaration
public static XRController leftHand { get; }
Property Value
Type | Description |
---|---|
XRController |
Remarks
If there is no left hand connected, this will be null. This also matches any currently tracked device that contains the 'LeftHand' device usage.
rightHand
A quick accessor for the currently active right handed device. This is also tracked via usages on the device.
Declaration
public static XRController rightHand { get; }
Property Value
Type | Description |
---|---|
XRController |
Remarks
If there is no left hand connected, this will be null. This also matches any currently tracked device that contains the 'RightHand' device usage.
Methods
FinishSetup()
Declaration
protected override void FinishSetup()