Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug New InputSystem Error

Discussion in 'Input System' started by RNDRSUPPORT, Oct 24, 2022.

  1. RNDRSUPPORT

    RNDRSUPPORT

    Joined:
    Dec 16, 2021
    Posts:
    2
    1. InputController 의 OnMovePerformed 에서 ReadValue 했을때 Focus out 되기 전의 키 값이 같이 입력 된다.
    (InputSystem bug 로 보임)

    private void OnMovePerformed(InputAction.CallbackContext context) {
    var moveVector2 = _action.Player.Move.ReadValue<Vector2>();
    _moveDispatcher.OnMovePerformed(moveVector2);
    }

    스크린샷 2022-09-15 오전 9.24.20.png
    BackGround Behavior 를 Reset And Disable 로 변경하면 OnMoveCanceled 이 호출되긴 하지만 Focus In 되었을때 Focus out 되기 전의 키 값이 같이 입력된다
     
  2. RNDRSUPPORT

    RNDRSUPPORT

    Joined:
    Dec 16, 2021
    Posts:
    2
    WebGL 상에서 브라우저가 Focus Out 되고 다시 Focus On 되었을때 Input 의 ReadVaue가 Focus Out 되기전의 값이 입력되는 버그가 있음. 나에게 해결책을 알려주세요 ~