Haptics
Last updated
Last updated
Haptics is a fancy word for Vibrations. However, with the latest levels of operating systems and top of the line mobile devices, the Vibrations can be varied in strength and sharpness, as well as length.
The following Actions have been included in the Asset.
Action Name
Description
Vibrate Mobile
This Actions executes the standard Unity Vibrate Mobile
Mobile Default Patterns
Executes one of the Six standard Patterns
Custom Mobile Set Patterns
Set the Strength and Length and Repeat after an Interval
Custom Mobile Varied Patterns
Execute a Varied Pattern from an Animation Curve.
The Mobile Default Patterns will differ from device to device but will include the following:
Warning
Error
Success
Light Hit
Medium Hit
Heavy Hit
The Custom Mobile Set Patterns Action allows you to set the Strength of the Vibration, and the length of time it is played for. On iOS 133 and above, you can also set the sharpness. The Action allows you to repeat the Vibration and sets an interval after each repeat.
The Custom Mobile Varied Patterns Action allows you to set the Strength of the Vibration and the length of time from an Animation Curve. Click on the Animation curve to modify or create your own Custom pattern. This Action also allows you to repeat the Vibration and sets an interval after each repeat.
Haptics should always be tested out on each of the target devices as they will differ for each model, manufacture, and software version.
For more information, see Example 1 - Haptics.