float AmplitudeScale

book_4_sparkGenerated
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 of 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

// Example of using AmplitudeScale in a HapticPattern
HapticPattern pattern = new HapticPattern();

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

// Use the pattern in your application
// This will apply the scaled amplitude to the haptic feedback
// pattern.ApplyToDevice(); // Hypothetical method to apply the pattern