Description

This class represents a child class of VG_ExternalController.

If you haven’t yet, have a short look at VG_ExternalControllerManager on the purpose of a VG_ExternalController.

Setup

This is an external controller class that supports a UnityXR controller (such as provided by Pico or Oculus integrations) as an external controller.

The following requirements have to be met to be able to use this controller:

  • You have the Unity XR Management package installed into your Unity project.

AutoSetup

Finally, you can the “UNITY_XR” option to AutoSetup your VG configuration.

For this controller, AutoSetup

  • will set “External” to “UnityXR”
  • will set “FingerControlType” to “BY_ANIMATION”
  • will set “Origin” to the transform called “XRRig”
  • will set “Offset-Position” to (-0.045, -0.1, -0.03) and “Offset-Rotation” to (23.7, 91.63, 92.7)

Functionality

Hand Poses

Only the wrists are mapped.

Will be controlled through UnityXR controller system, such as InputDevice.TryGetFeatureValue(CommonUsages.devicePosition).

Grab Signals

will be controlled through UnityXR controller system, such as InputDevice.TryGetFeatureValue(CommonUsages.trigger).

Haptic Signals

will be controlled through UnityXR controller system, such as InputDevice.SendHapticImpulse().