Haptics Plugin for Unity that runs on iOS and Android.
Add package from git URL at PackageManager window.
https://github.com/ulaph/MobileHapticsForUnity.git?path=Assets/MobileHapticsForUnity
or add
"com.ulaph.mobile-haptics-for-unity": "https://github.com/ulaph/MobileHapticsForUnity.git?path=Assets/MobileHapticsForUnity"
to Packages/manifest.json
Please choose from Light, Medium, Heavy impact feedback style.
using MobileHapticsForUnity;
Haptics.Impact(ImpactFeedbackStyle.Light);