Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
Interhaptics.Samples.TargetBodyPartIntensitySlider Class Reference
Inheritance diagram for Interhaptics.Samples.TargetBodyPartIntensitySlider:

Public Member Functions

void HandleIntensityChange (float value)
 

Public Attributes

HapticBodyPart[] hapticBodyParts
 

Detailed Description

Definition at line 13 of file TargetBodyPartIntensitySlider.cs.

Member Function Documentation

◆ HandleIntensityChange()

void Interhaptics.Samples.TargetBodyPartIntensitySlider.HandleIntensityChange ( float value)

Definition at line 29 of file TargetBodyPartIntensitySlider.cs.

30 {
31 // Update the TargetIntensity of each HapticBodyPart
32 foreach (HapticBodyPart hapticBodyPart in hapticBodyParts)
33 {
34 if (hapticBodyPart != null)
35 {
36 hapticBodyPart.TargetIntensity = value; // Updating only the value and not calling UpdateTargetIntensity() to avoid crash calls to the native plugin - no HapticMaterialId is set yet
37 }
38 }
39 }

References Interhaptics.Samples.TargetBodyPartIntensitySlider.hapticBodyParts.

Member Data Documentation

◆ hapticBodyParts

HapticBodyPart [] Interhaptics.Samples.TargetBodyPartIntensitySlider.hapticBodyParts

The documentation for this class was generated from the following file: