# Vibro Button

## How to use

Simply add this instead of default unity Button.\
Now you will have the same Button but with vibration type field.

{% hint style="info" %}
Vibrations will be called onClick of Button.cs event.
{% endhint %}

Here is how it looks in inspector:

<figure><img src="https://1613353771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fygjewtla1W7kzTTIpGWq%2Fuploads%2FyRSSZJPBBCad0VAcF1Cb%2Fimage.png?alt=media&#x26;token=4ffa0d3f-422d-4ce2-a466-d1abdaf72be8" alt=""><figcaption><p>VibroButton in inspector</p></figcaption></figure>

* Vibration Type dropdown corresponds to vibration type on click (from **NiceVibrations** package);
* Use Animation checkbox enables DOTween Button scale on pointer down and click;
* Use Multi Image Tint checkbox enables Color Tint transition for all child graphics elements. Has no effect if transition is not "Color Tint".
* Use Click Sound checkbox enables AudioManager force to play sound by "Click Sound" reference. See [**AudioManager**](https://reddycat.gitbook.io/base-project-cube-doc/fundamentals/singletons/audio-manager) how to setup SoundAudioClip reference.
