//TODO public void StartRecording() { if (m_clip != null) { SteamVR_Controller.Input(Input.GetButtonDown("Button1") ? 1 : 2).TriggerHapticPulse(1000); m_recording = true; //previewAnimator.SetTrigger("StopPreview"); controlBoard_RecordControl.RequestControlBoardFocus(); m_clip.ClearCurves(); foreach (GameObject indicator in indicators) { indicator.SetActive(true); } } }
private void HandHoverUpdate(Hand hand) { if (hand.GetStandardInteractionButtonDown()) { hand.HoverLock(GetComponent <Interactable>()); playing = !playing; if (playing) { animationTime = animationClip.length; playbackDrive.UpdateMapping(playbackRate.Value * Time.deltaTime / animationTime); control.RequestControlBoardFocus(); } } if (hand.GetStandardInteractionButtonUp()) { hand.HoverUnlock(GetComponent <Interactable>()); } }