UxrUnityXRControllerInput.SendHapticFeedback Method (UxrHandSide, Single, Single, Single, UxrHapticMode)
Sends haptic feedback to a controller if the controller supports it.
Namespace: UltimateXR.Devices.Integrations
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public override 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)
Implements
IUxrControllerInput.SendHapticFeedback(UxrHandSide, Single, Single, Single, UxrHapticMode)
See Also
Reference
UxrUnityXRControllerInput Class
SendHapticFeedback Overload
UltimateXR.Devices.Integrations Namespace