We use cookies on this site to enhance your user experience

HapticService

HapticService

The Xbox One controller and some other USB gamepad controllers have motors built in to provide haptic feedback. Adding rumbles and vibrations can greatly enhance a game’s experience and provide subtle feedback that is hard to convey through visuals or audio.


Functions

Name Type Description
Tuple

Returns the current vibration value set to the specified UserInputType and VibrationMotor.

This will not return anything if SetMotor has not been called prior.

bool

Returns true if the specified motor is available to be used with the specified Enum/UserInputType.

bool

Returns true if the specified Enum/UserInputType supports haptic feedback.

void

Sets the vibration intensity of the specified UserInputType and VibrationMotor.

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild