IUxrControllerInput.SendHapticFeedback Method (UxrHandSide, Single, Single, Single, UxrHapticMode)

Sends haptic feedback to a controller if the controller supports it.

Namespace: UltimateXR.Devices
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

void SendHapticFeedback(
	UxrHandSide handSide,
	float frequency,
	float amplitude,
	float durationSeconds,
	UxrHapticMode hapticMode = UxrHapticMode.Mix
)


Parameters

 

handSide
Type: UltimateXR.Core.UxrHandSide
Which controller to send the haptic feedback to. In Single devices where IsHandednessSupported is false, such as in gamepads, both hands will address the single device.
frequency
Type: System.Single
Frequency of the feedback in hz
amplitude
Type: System.Single
Amplitude of the feedback between range [0.0, 1.0]
durationSeconds
Type: System.Single
Feedback duration in seconds
hapticMode (Optional)
Type: UltimateXR.Haptics.UxrHapticMode
The mode (stop and override all current haptics or mix it with the current existing haptics)

See Also

Reference

IUxrControllerInput Interface
SendHapticFeedback Overload
UltimateXR.Devices Namespace