GetCursorPosition() 공개 메소드

public GetCursorPosition ( ) : Vector3
리턴 Vector3
예제 #1
0
    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();
    }
예제 #2
0
    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);
        }
    }