Hi Chris! Thanks for all your hard work on this amazing tool!
I was just wondering if there was a simple way to add a custom action to make iOS and Android devices do a small haptic tap to add feedback on button presses etc?
For example, in action list associated to when a menu button is pressed, there could be a custom action with a drop down list of various haptic feedback levels (light tap, heavy tap, strong vibrate).
Thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
As I understand it, cross-platform haptics isn't something Unity natively supports, beyond a simple "Vibrate" command that has no controls.
However, there are a few plugins out there that provide this. One of them being this free implementation on Github:
https://github.com/colinc-w/EZHaptics
The instructions for the above appear to just require a single function call to its EZHaptics component. If your Menus are built using Unity UI, you can invoke this within the UI Button itself, by adding it as an On Click event.
Otherwise, if an ActionList is necessary, you should be able to use either the Object: Call event or Object: Send message Action to trigger a function on a separate GameObject.