Does any one have good idea about how to control Vibration in Unity.
I know How to use,
iPhoneUtils.Vibrate();
But What i want is control the Intensity of Vibration. Any help will welcome
Does any one have good idea about how to control Vibration in Unity.
I know How to use,
iPhoneUtils.Vibrate();
But What i want is control the Intensity of Vibration. Any help will welcome
I’d like to know if there is a solution to this also!
You cant control the vibration with the Unity API,it
s like a sytem vibration.
Write your own plugin with the native API from Android : http://android.konreu.com/developer-how-to/vibration-examples-for-android-phone-development/ or buy a ready solution.
Yannic
thanks Yannic, But the problem is Im new to Native code. Actually never tried. If you dont mind can u please let me know good artical / web site for st5art native code in Unity. I have unity pro with android Pro
Might want to check out this? I believe the Prime31 plugin also allows this (and a bunch of other stuff, but it’s more expensive because of that).
These links could help you :
Our vibration plug-in works on 3.4 and 3.5 can be used from C# as well as from UnityScript(Javascript) and is very very easy to implement.
It costs just 10$. We have many satisfied customers.
Here on the official thread you can find a C# and a Javascript example:
And here our two Unity3D Android titles that uses the plugin:
https://play.google.com/store/apps/details?id=com.LitobyteSoftworks.MadOBall3D
https://play.google.com/store/apps/details?id=com.LitobyteSoftworks.MadOBall3DSpace
Our company has a method for controlling vibration intensity for Android apps. Checkout this thread about our Immersion Haptic Vibration Plugin for Unity
Here s a good article about how to handle Vibration in Unity:
https://lucas-games.com/tutorials/trigger-device-vibration-unity.html