📳 Perform haptic feedback on both iOS and Android devices.
https://docs.unity3d.com/Packages/[email protected]/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();