Magic leap 2 controller Haptic feedback - Unity OpenXR MRTK3

Hi all,
I am trying to use the vibration functionality of the magic leap 2 controller, however I couldn't find any example or specific documentation how to do this.
I am using MRTK 3 with openXR.

Unity Editor version: 2022.3.20f1
ML2 OS version: 1.6
Unity SDK version: 2.1 (Magic leap SDK)
MagicLeap MRTK3 package: 1.0.0-pre7
Host OS: (Windows/MacOS) MacOS

Error messages from logs (syntax-highlighting is supported via Markdown):

You can use the Android Haptic Feedback APIs to trigger haptic feedback on the controller. You can also call the MLSDK API in your OpenXR application such as

InputSubsystem.Extensions.Haptics.StartPreDefined(InputSubsystem.Extensions.Haptics.PreDefined.Type.B);

See the API page here:

Thanks, that worked !

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.