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

Public Member Functions

void StopPlayingEventHapticSources ()
 

Detailed Description

Definition at line 12 of file EventHapticManagerMobile.cs.

Member Function Documentation

◆ StopPlayingEventHapticSources()

void Interhaptics.Samples.EventHapticManagerMobile.StopPlayingEventHapticSources ( )

Definition at line 17 of file EventHapticManagerMobile.cs.

18 {
19 foreach (EventHapticSource eventHapticSource in eventHapticSources)
20 {
21 if (eventHapticSource.isPlaying)
22 {
23 Core.HAR.StopEvent(eventHapticSource.HapticMaterialId);
24 if (eventHapticSource.playingCoroutine != null)
25 {
26 eventHapticSource.StopCoroutine(eventHapticSource.playingCoroutine);
27 }
28 eventHapticSource.playingCoroutine = null;
29 eventHapticSource.isPlaying = false;
30 break;
31 }
32 }
33 }
Haptic source that plays a haptic effect when triggered by an event. Plays the haptic effect on the s...

References Interhaptics.Internal.HapticSource.HapticMaterialId, Interhaptics.Internal.HapticSource.isPlaying, and Interhaptics.Internal.HapticSource.playingCoroutine.

Referenced by Interhaptics.Samples.HapticControlGUI.StartHaptics().


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