Hi,
I’m having fairly good success with the new Input System but my initial implementation was simply to create an input manager to capture the events and use the ouputs similar to the old input method. Having spent a bit more time on this I have tried to change my code to get some of the event driven benefits of this new system.
Currently I am moving a character using the following
void OnMovePerformed(InputAction.CallbackContext obj) {
move = obj.ReadValue<Vector2>().normalized;
rb2d.velocity = move * speed;
}
void OnMoveReleased(InputAction.CallbackContext obj) {
move = Vector2.zero;
rb2d.velocity = move * speed;
}
By doing this I don’t need to set the character’s rigidbody velocity in the Update method but is this going to catch me out at some point later in terms of performance?