The LengthScale
field in the HapticPattern
class is a public instance field of type System.Single
(float). It is used to scale the length of the haptic pattern, allowing for adjustments to the duration of the haptic feedback effect.
The LengthScale
field in the HapticPattern
class is a public instance field of type System.Single
(float). It is used to scale the length of the haptic pattern, allowing for adjustments to the duration of the haptic feedback effect.
To use the LengthScale
field, you can directly access it from an instance of the HapticPattern
class. Adjusting this field will modify the duration of the haptic pattern, effectively scaling the time over which the pattern is played.
// Example of using the LengthScale field HapticPattern pattern = new HapticPattern(); // Set the length scale to 1.5 to increase the duration by 50% pattern.LengthScale = 1.5f; // Use the pattern in your application // This will affect how the haptic feedback is perceived in terms of duration