void StopAllVibrations()

book_4_sparkGenerated
code_blocksInput

Description

The StopAllVibrations method is a public instance method of the VRController class within the Sandbox.VR namespace. This method is used to stop all ongoing vibration events on the VR controller. It is particularly useful when you want to ensure that no vibrations are active, for instance, when transitioning between different states in a VR application or when resetting the controller's state.

Usage

To use the StopAllVibrations method, you need to have an instance of the VRController class. Once you have the instance, you can call this method to stop all vibrations on that specific controller. This method does not take any parameters and does not return any value.

Example

// Assuming 'controller' is an instance of VRController
controller.StopAllVibrations();

// This will stop all vibration events on the 'controller' instance.