float AmplitudeScale

robot_2Generated
code_blocksInput

Description

The AmplitudeScale field in the HapticPattern class represents a scaling factor for the amplitude of the haptic feedback pattern. This field is used to adjust the intensity of the haptic feedback by scaling the amplitude values defined in the pattern.

Usage

To use the AmplitudeScale field, you can directly access it from an instance of the HapticPattern class. Adjusting this value will proportionally scale the amplitude of the haptic feedback, allowing for customization of the feedback intensity.

Example

// Create a new instance of HapticPattern
HapticPattern hapticPattern = new HapticPattern();

// Set the amplitude scale to increase the intensity
hapticPattern.AmplitudeScale = 1.5f;

// Use the haptic pattern in your application
// This will apply the amplitude scaling to the haptic feedback
// Example: hapticPattern.Play();