Skip to content

CandyCoded/HapticFeedback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HapticFeedback

📳 Perform haptic feedback on both iOS and Android devices.

npm

Installation

Unity Package Manager

https://docs.unity3d.com/Packages/com.unity.package-manager-ui@2.0/manual/index.html

Git

{
  "dependencies": {
    "xyz.candycoded.hapticfeedback": "https://github.com/CandyCoded/HapticFeedback.git#v1.0.3",
    ...
  }
}

Scoped UPM Registry

{
  "dependencies": {
    "xyz.candycoded.hapticfeedback": "1.0.3",
    ...
  },
  "scopedRegistries": [
    {
      "name": "candycoded",
      "url": "https://registry.npmjs.com",
      "scopes": ["xyz.candycoded"]
    }
  ]
}

Usage

First include the package.

using CandyCoded.HapticFeedback;

Light Feedback

HapticFeedback.LightFeedback();

Medium Feedback

HapticFeedback.MediumFeedback();

Heavy Feedback

HapticFeedback.HeavyFeedback();