Description

This class represents a child class of VG_ExternalController.

If you haven’t yet, have a short look at VG_ControllerProfiles 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.

Controller Profile

If these requirements are met, you will be able to use the VG_CP_Unity.UnityXR controller profile to setup your MyVirtualGrasp configuration (otherwise an error will appear on the console).

VG Controller profile in Unity.
VG Controller profile in Unity.

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().