iPhoneUtils.Vibrate Manual     Reference     Scripting  
Scripting > Runtime Classes > iPhoneUtils
iPhoneUtils.Vibrate

static function Vibrate () : void

Description

Triggers device vibration.

// Press button to vibrate
function OnGUI() {
if (GUI.Button(Rect(0, 10, 100, 32), "Vibrate!"))
iPhoneUtils.Vibrate();
}