private void OnDestroy() { if (actionSet != null && deactivateOnDestroy) { //Debug.Log(string.Format("[SteamVR] Deactivating {0} action set.", actionSet.fullPath)); actionSet.Deactivate(rHand); actionSet.Deactivate(lHand); } }
private void OnDestroy() { if (actionSet != null && deactivateOnDestroy) { //Debug.Log(string.Format("[SteamVR_Standalone] Deactivating {0} action set.", actionSet.fullPath)); actionSet.Deactivate(forSources); } }
/// <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(); } }