5
\$\begingroup\$

How to change duration of vibration on Android(Unity3D)?

For example:

public void Jump()
{
    if (grounded)
    {
        rb2d.velocity = new Vector2(rb2d.velocity.x, jumpPower);
        Handheld.Vibrate();
    }
}

This code makes a vibration in one second long.

\$\endgroup\$

1 Answer 1

2
\$\begingroup\$

You can download a plugin in asset store to regulate vibration. here's a link: https://www.assetstore.unity3d.com/en/#!/content/10982 or you can check this one it's FREE: https://www.assetstore.unity3d.com/en/#!/content/16648

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .