I recently switched to the new Input System and now I’ve got a problem. I’ve got an Input-Action with the Type: Value and Control Type: Vector 2. Everything works how it should work, however now I want that every frame, as long as the the user presses the buttons that are used to composite the Vector 2, my method, that uses the Vector 2, gets called. Thanks in advance.
ATM there’s no support for callbacks getting continuously called even if there’s no input. The easiest way to do these kind of responses in generally is to poll.
public void Update()
{
var move = playerInput.actions["move"].ReadValue<Vector2>();
Thanks! Works like a charm