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

Public Member Functions

void HandleSliderValueChanged (float value)
 

Public Attributes

HapticSource[] hapticSources
 

Detailed Description

Definition at line 13 of file SourceIntensitySlider.cs.

Member Function Documentation

◆ HandleSliderValueChanged()

void Interhaptics.Samples.SourceIntensitySlider.HandleSliderValueChanged ( float value)

Definition at line 32 of file SourceIntensitySlider.cs.

33 {
34 // Update the source intensity for all Haptic Sources when the slider's value changes
35 foreach (HapticSource hapticSource in hapticSources)
36 {
37 if (hapticSource != null)
38 {
39 hapticSource.SourceIntensity = value;
40 hapticSource.ApplySourceIntensity();
41 }
42 }
43 }
void ApplySourceIntensity()
Call this method to apply the source intensity.

References Interhaptics.Internal.HapticSource.ApplySourceIntensity(), and Interhaptics.Samples.SourceIntensitySlider.hapticSources.

Member Data Documentation

◆ hapticSources

HapticSource [] Interhaptics.Samples.SourceIntensitySlider.hapticSources

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