[FİXED] Getting error when click 2 movement button at the same time

I’m using New Input System for my top-down RPG movement. It works when i click the WASD one by one but if i click 2 of them togather like A and S for left down it gives this Error:

My Input Controller

My Code:

public class CharacterMovement : MonoBehaviour
{
    [SerializeField] private float moveSpeed = 5f;
    [SerializeField] private Rigidbody2D rb;
    private Vector2 movement;

    private void FixedUpdate()
    {
        rb.MovePosition(rb.position + movement * moveSpeed * Time.fixedDeltaTime);
    }

    private void OnMovement(InputValue value)
    {
        Vector2 mevementInput = value.Get<Vector2>();
        movement = mevementInput;
    }
}

its still work how it should be but i really hate this error.

Changing Action type “Value” to “Pass Through” fix the problem. Sorry to bother :smile: