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

Public Member Functions

void StartHaptics ()
 
void StopHaptics ()
 

Detailed Description

Definition at line 11 of file AudioControlGUI.cs.

Member Function Documentation

◆ StartHaptics()

void Interhaptics.Samples.AudioControlGUI.StartHaptics ( )

Definition at line 29 of file AudioControlGUI.cs.

30 {
31 audioManagerMobile.StopPlayingAudioHapticSources();
32 Interhaptics.Core.HAR.ClearActiveEvents();
33 audioHapticSource.PlayEventVibration();
34 }
override void PlayEventVibration()
Method to start the coroutine from outside (if necessary). Plays the haptic effect after the vibratio...

References Interhaptics.Utils.AudioHapticSource.PlayEventVibration(), and Interhaptics.Samples.AudioManagerMobile.StopPlayingAudioHapticSources().

◆ StopHaptics()

void Interhaptics.Samples.AudioControlGUI.StopHaptics ( )

Definition at line 36 of file AudioControlGUI.cs.

37 {
38 audioHapticSource.audioSource.Stop();
39 Interhaptics.Core.HAR.ClearActiveEvents();
40 }

References Interhaptics.Utils.AudioHapticSource.audioSource.


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