private void Update() { if (_interactionManager.GetCursorPosition().y > 0.9) { scrollBar.value += Mathf.Lerp(0, 1, 0.01f); } else if (_interactionManager.GetCursorPosition().y < 0.1) { scrollBar.value -= Mathf.Lerp(0, 1, 0.01f); } CursorPositionText.text = _interactionManager.GetCursorPosition().y.ToString(); }
private void Update() { // If left arrow pressed --> side selection if (Input.GetKeyDown(KeyCode.LeftArrow)) { LoadPreviousScene(); } devTrackHandJoints(); if (_interactionManager.GetCursorPosition().x > 0.9) { scrollBar.value += Mathf.Lerp(0, 1, 0.01f); } else if (_interactionManager.GetCursorPosition().x < 0.1) { scrollBar.value -= Mathf.Lerp(0, 1, 0.01f); } }