PlayVibration

Method

Activates vibration with the given frequency, amplitude and duration. (VR and mobile only)

Definition

void PlayVibration(float frequency, float amplitude, float duration)
void PlayVibration(float frequency, float amplitude, float duration)

Parameters

ParameterDescription
float frequency

(VR only) The vibration frequency, between 0 and 1. Lower values are smoother, higher values are sharper.

float amplitude

(VR only) The vibration intensity, between 0 and 1

float duration

(VR only) The duration of the vibration in seconds