|
static void | EnqueueEffect (int hMaterialId, double duration, int loops, double intensity, float vibrationOffset=0f) |
|
static void | StopEffects () |
|
Definition at line 13 of file MobileControl.cs.
◆ EnqueueEffect()
static void Interhaptics.Core.MobileControl.EnqueueEffect |
( |
int | hMaterialId, |
|
|
double | duration, |
|
|
int | loops, |
|
|
double | intensity, |
|
|
float | vibrationOffset = 0f ) |
|
static |
Definition at line 52 of file MobileControl.cs.
53 {
54 if (currentInstance == null)
55 {
56 GameObject mobileControllerObject = new GameObject("MobileController");
57 currentInstance = mobileControllerObject.AddComponent<MobileControl>();
58 DontDestroyOnLoad(mobileControllerObject);
59 }
60
61 currentInstance.EnqueueEffectInternal(new HapticEffect(hMaterialId, duration, loops, intensity, vibrationOffset));
62 }
◆ StopEffects()
static void Interhaptics.Core.MobileControl.StopEffects |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: