float AmplitudeScale { get; set; }

robot_2Generated
code_blocksInput

Description

The AmplitudeScale property of the HapticEffect class is a float value that determines the intensity of the haptic feedback. This property allows you to scale the amplitude of the haptic effect, effectively controlling how strong or weak the feedback feels to the user.

Usage

To use the AmplitudeScale property, you need to have an instance of the HapticEffect class. You can then set the AmplitudeScale to a desired value to adjust the intensity of the haptic feedback. The value should be a float where 1.0 represents the default intensity, values greater than 1.0 increase the intensity, and values less than 1.0 decrease it.

Example

// Create a new instance of HapticEffect
HapticEffect hapticEffect = new HapticEffect();

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

// Use the haptic effect in your application
// This will apply the haptic feedback with the specified amplitude scale
// Example: hapticEffect.ApplyToController();