📳 Perform haptic feedback on both iOS and Android devices.
https://docs.unity3d.com/Packages/com.unity.package-manager-ui@2.0/manual/index.html
{
"dependencies": {
"xyz.candycoded.hapticfeedback": "https://github.com/CandyCoded/HapticFeedback.git#v1.0.3",
...
}
}
{
"dependencies": {
"xyz.candycoded.hapticfeedback": "1.0.3",
...
},
"scopedRegistries": [
{
"name": "candycoded",
"url": "https://registry.npmjs.com",
"scopes": ["xyz.candycoded"]
}
]
}
First include the package.
using CandyCoded.HapticFeedback;
HapticFeedback.LightFeedback();
HapticFeedback.MediumFeedback();
HapticFeedback.HeavyFeedback();