Method SetControllerVibration
SetControllerVibration(float, float, ControllerType)
Make specific controller vibrate at the set frequency and amplitude
Declaration
public static void SetControllerVibration(float frequency, float amplitude, ControllerType controllerMask = ControllerType.Active)
Parameters
| Type | Name | Description |
|---|---|---|
| float | frequency | Vibration frequency |
| float | amplitude | Vibration amplitude |
| ControllerType | controllerMask | Target controller |
SetControllerVibration(float, float, float, ControllerType)
Make specific controller vibrate at the set frequency and amplitude
Declaration
public static void SetControllerVibration(float frequency, float amplitude, float duration, ControllerType controllerMask = ControllerType.Active)
Parameters
| Type | Name | Description |
|---|---|---|
| float | frequency | Vibration frequency |
| float | amplitude | Vibration amplitude |
| float | duration | Vibration duration |
| ControllerType | controllerMask | Target controller |