Controller Haptics Plugin

Play Haptics/Vibration Patterns on Supported Controllers

Platforms/Limitations:

this plugin only works with iOS 11+ and MacOS 11+ and only supports playing .ahap files

You can find Ahap files and creator at https://haptrix.com

Functions:

controllerHaptics.isSupported()

-- return true if controller is connected and supports haptics

controllerHaptics.play(pathOfAhap, hatpicLocality)

pathOfAhap(string) path of Ahap you would like to play (via system.pathForFile)

hatpicLocality(string)(optional) location on controller to play, default value is "default", other options are "all","handles", "triggers", "leftHandle", "rightHandle", "leftTrigger", or "rightTrigger"

Build Settings:

Helpful Links:

Get Plugin

Example

Support