Skip to content

CandyCoded/HapticFeedback

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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();