How do I use Haptics Features?
Setup the Haptics feature with Hololight Stream
Hololight Stream supports the usage of haptics through Unity Input Subsystem. For the details regarding the usage, please refer to the Unity Reference. Impulse and Buffer type haptics can be sent from the Input System. For additional implementations, check related classes from XR Interaction Toolkit (for versions 3.0+) and MRTK. Haptics are only supported on specific devices, namely the Quest 2, Quest Pro, Quest 3, Magic Leap 2, and Lenovo VRX.
These devices have been designed with advanced haptic feedback capabilities, allowing developers to create immersive experiences that engage users' sense of touch. By leveraging the unique hardware features of these devices, developers can implement a variety of haptic sensations, enhancing user interactions and providing a more realistic and tactile experience. It's important to ensure that your application is tested on these supported devices to fully utilize the haptic functionalities offered.
Additional to the support for basic types of haptics, Stream also supports ".haptic" files created by Meta Haptics Studio. Files that are exported via the Studio can be imported to Unity and sent using the extension for InputDevice
. For an example usage, please refer to the Meta Haptics
sample in the samples package.