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

Public Member Functions

void StartHaptics ()
 
void StopHaptics ()
 

Detailed Description

Definition at line 11 of file HapticControlGUI.cs.

Member Function Documentation

◆ StartHaptics()

void Interhaptics.Samples.HapticControlGUI.StartHaptics ( )

Definition at line 28 of file HapticControlGUI.cs.

29 {
30 eventHapticManagerMobile.StopPlayingEventHapticSources();
31 eventHapticSource.PlayEventVibration();
32 }
override void PlayEventVibration()
Method to start the coroutine from outside (if necessary). Plays the haptic effect after the vibratio...

References Interhaptics.Utils.EventHapticSource.PlayEventVibration(), and Interhaptics.Samples.EventHapticManagerMobile.StopPlayingEventHapticSources().

◆ StopHaptics()

void Interhaptics.Samples.HapticControlGUI.StopHaptics ( )

Definition at line 33 of file HapticControlGUI.cs.

34 {
35 eventHapticSource.Stop();
36 Interhaptics.Core.HAR.ClearActiveEvents();
37 }
override void Stop()
Stops the haptic effect on the specified body parts.

References Interhaptics.Utils.EventHapticSource.Stop().


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