Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.34 KB

File metadata and controls

53 lines (38 loc) · 1.34 KB

Made With Unity License Last Commit Repo Size Last Release

Overview

Native plugin for Unity for iOS and Android. Use custom vibrations on mobile.

Reference:

Installation

  1. Open the Package Manager from Window > Package Manager.
  2. Click the "+" button > Add package from git URL.
  3. Enter the following URL:
https://github.com/lazycoder71/LazyCoder.Haptic.git

Use

Initialization

Initialize the plugin with this line before using vibrations:

Haptic.Init();

Vibrations

Just call Haptic.Vibrate(HapticType type);

Enable/Disable

Set Haptic.Enable to true or false.