private void OnDestroy()
 {
     if (actionSet != null && deactivateOnDestroy)
     {
         //Debug.Log(string.Format("[SteamVR] Deactivating {0} action set.", actionSet.fullPath));
         actionSet.Deactivate(rHand);
         actionSet.Deactivate(lHand);
     }
 }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     if (actionSet != null && deactivateOnDestroy)
     {
         //Debug.Log(string.Format("[SteamVR_Standalone] Deactivating {0} action set.", actionSet.fullPath));
         actionSet.Deactivate(forSources);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Disable all known action sets.
 /// </summary>
 public static void DisableAllActionSets()
 {
     for (int actionSetIndex = 0; actionSetIndex < SteamVR_Input.actionSets.Length; actionSetIndex++)
     {
         SteamVR_ActionSet set = SteamVR_Input.actionSets[actionSetIndex];
         set.Deactivate();
     }
 }