IUxrControllerInput.SendHapticFeedback Method (UxrHandSide, UxrHapticClipType, Single, Single, UxrHapticMode)
Sends a predefined haptic clip to a controller.
Namespace: UltimateXR.Devices
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
void SendHapticFeedback(
UxrHandSide handSide,
UxrHapticClipType clipType,
float amplitude,
float durationSeconds = -1f,
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. - clipType
- Type: UltimateXR.Haptics.UxrHapticClipType
The clip type from a set of predefined clips - amplitude
- Type: System.Single
The intensity of the haptic feedback - durationSeconds (Optional)
- Type: System.Single
The duration in seconds. A zero/negative value will use a default duration. - hapticMode (Optional)
- Type: UltimateXR.Haptics.UxrHapticMode
Whether the clip will stop all currently playing haptics or mix with them
See Also
Reference
IUxrControllerInput Interface
SendHapticFeedback Overload
UltimateXR.Devices Namespace